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

Create simulation tests for ZetaCore #2905

Open
6 of 17 tasks
Tracked by #2997
lumtis opened this issue Sep 20, 2024 · 0 comments
Open
6 of 17 tasks
Tracked by #2997

Create simulation tests for ZetaCore #2905

lumtis opened this issue Sep 20, 2024 · 0 comments
Assignees
Labels
epic Group issues under a high-level objective test Tests related

Comments

@lumtis
Copy link
Member

lumtis commented Sep 20, 2024

Cosmos offers a framework to enable simulation testing of the blockchain: https://docs.cosmos.network/main/learn/advanced/simulation

This allows having fuzzing like tests and check blockchain behaviors for random inputs (like if a consensus failure is reached)

Enabling simulation tests for a module, requires define a function to generate random message for the chain. Which can be challenging for us to generate given that many of the input are from offchain data. It might potentially be trivial to integrate for the emissions module.

A first step can be just enabling the base simulation testing without inputs from our own modules. So Simulations test can be run for the Cosmos modules.

Simulation test can also be integrated in the CI.

Tasks

Preview Give feedback
  1. test
    kingpinXD
  2. SIM_TESTS
    kingpinXD
  3. test
    kingpinXD
  4. m:crosschain m:observer test
    kingpinXD
  5. SIM_TESTS m:observer zetacore
    kingpinXD
  6. SIM_TESTS m:fungible zetacore
    kingpinXD
  7. m:crosschain m:observer test
  8. m:fungible m:observer test
  9. m:authority test
  10. m:emissions test
  11. 0 of 4
    test
    kingpinXD
  12. SIM_TESTS
  13. SIM_TESTS zetacore
  14. zetacore
  15. SIM_TESTS
    kingpinXD
  16. SIM_TESTS
@lumtis lumtis added the test Tests related label Sep 20, 2024
@lumtis lumtis added the epic Group issues under a high-level objective label Oct 7, 2024
@lumtis lumtis added this to the October Release (v22) milestone Oct 7, 2024
@lumtis lumtis changed the title Initialize simulation tests Create simulation tests for ZetaCore Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Group issues under a high-level objective test Tests related
Projects
None yet
Development

No branches or pull requests

2 participants