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
1 of 9 tasks
Tracked by #2997
lumtis opened this issue Sep 20, 2024 · 0 comments
Open
1 of 9 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

  1. test
    kingpinXD
  2. simulation_tests
    kingpinXD
  3. test
    kingpinXD
  4. m:crosschain m:observer test
  5. m:crosschain m:observer test
  6. m:fungible m:observer test
  7. m:authority test
  8. m:emissions test
  9. test
@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