Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve test suite testutil/keeper by adding utility methods for state initialization #808

Closed
lumtis opened this issue May 19, 2022 · 0 comments · Fixed by #1019
Closed
Labels
test Improve tests

Comments

@lumtis
Copy link
Contributor

lumtis commented May 19, 2022

Many of our tests depend on some state initialization, like creating a chain, a campaign, a coordinator, etc...

Those initializations are performed manually using keeper exposed methods

We should provide in testutil/keeper package utility methods to perform repetitive initialization

We have already for example a method Mint that perform all the necessary step from the bank keeper to mint and transfer funds to a specific address.

Example of methods:

CreateChain
CreateChainWithRewards
CreateMainnet
  • Investigate and identify methods to implement
  • Implement methods or create tasks accordingly depending on the complexity
@lumtis lumtis added the test Improve tests label May 19, 2022
@lumtis lumtis added this to the Test Refactoring milestone May 26, 2022
@lumtis lumtis removed this from the Test Refactoring milestone Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Improve tests
Projects
None yet
1 participant