Skip to content

HyperCore simulator: increase robustness and readability of test suite #16

@0xjuaan

Description

@0xjuaan

All tests for the testing framework are in the CoreSimulatorTest.t.sol file. Also there are only 1-2 tests per function, so there could be many buggy edge cases in the simulator which haven't been reached via tests.

Tasks

  • Separate tests into different files (staking, trading, bridging, etc)
  • Have 100% test coverage of all core simulation actions, with valid assertions for each test (this is mostly achieved already)
  • Implement additional tests with different tokens, price settings, etc
    • specifically, the trading flows should be tested with at least uBTC, HYPE, uSOL (as base tokens), and USDC, USDT0 (as quote tokens).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions