Closed milapsheth closed 4 months ago
This issue might be a good opportunity to reinstate use of strum
in tofn to iterate over enum variants for malicious behaviour. https://docs.rs/strum
@ggutoski mentioned that we could leverage the end-to-end testing architecture for axelar-core to run any long running tests we might have.
Along with more test parameters, we can also setup our tests to run in debug
mode to run debug_assert
s for sanity.
Long running tests should also use safe primes for some tests, to get more coverage (for e.g. #190).
tofn's integration tests and some of the unit tests (including malicious tests) are only run for a specific choice of parameters (specific keygen, sign party count and threshold). We can improve the test coverage by having a set of test cases that use varying parameter combinations, including various edge cases that all tests can reuse. The malicious tests might require some changes to work with this.
One concern is that this will significantly increase testing time for local testing and PR reviews. Few potential solutions to look into are: