interchain-security icon indicating copy to clipboard operation
interchain-security copied to clipboard

Create guidelines and tutorials on how to use different type of testing frameworks

Open MSalopek opened this issue 2 years ago • 3 comments

This issue is tracking progress on creating guidelines and tutorials and testing that do not relate to e2e tests.

Please list any questions you want answered in this issue so they can get the necessary attention:

  • [ ] mock generation
  • [ ] scoping unittests
  • [ ] scoping integration tests
  • [ ] working with ibc-go/testing
  • [ ] overriding ibc-go/testing
  • [ ] streaming data from the test database

MSalopek avatar Sep 28 '23 12:09 MSalopek

This issue should build off the ideas already in https://github.com/cosmos/interchain-security/blob/main/docs/old/testing.md. I can take a crack at some of the ideas this week

shaspitz avatar Oct 04 '23 06:10 shaspitz

Note that https://github.com/cosmos/interchain-security/issues/625 should be addressed in the docs. It's not neccessary to refactor a bunch of UTs, but there should be a guideline of how unit tests should be written.

UTs should be as simple and blackbox as possible, without sneaking in patterns of property based testing

shaspitz avatar Oct 04 '23 07:10 shaspitz

Here's a start on closing this issue https://github.com/cosmos/interchain-security/pull/1342

shaspitz avatar Oct 05 '23 22:10 shaspitz