-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
add unit tests for module simulations #5007
Comments
working on this |
6 tasks
Hi, can I work on this? |
pleasee do!! thank you for all your recent contributions!! |
I will track the progress of this task here:
|
This was referenced Jul 11, 2020
Note to self: After adding all the test cases remember to rename following files
to clean up following files from duplicate assertions:
remove print statements:
|
This was referenced Jul 13, 2020
This was referenced Jul 18, 2020
I believe this task can be closed unless someone else wants to add more test cases. 😄 |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Summary
Add unit tests to each module
simulation
package.Problem Definition
Now that the simulation type decoders (#4847), gen state and params (#4838), and operations and registered proposals (WIP #4869) are modularized we can add unit tests to each of those components.
This is a critical part of the software and should have ideally a 100% coverage.
Proposal
In terms of priorities, from highest to lowest, the files that need unit tests are:
x/<module>/simulation/operations.go
x/<module>/simulation/genesis.go
x/<module>/simulation/params.go
x/<module>/simulation/proposals.go
// from part 3 Sim refactor 3: move weighted operations to modules #4869all decoders (
x/<module>/simulation/decoder.go
) should be tested already.cc: @tnachen
For Admin Use
The text was updated successfully, but these errors were encountered: