-
Notifications
You must be signed in to change notification settings - Fork 973
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
Refactor Overall Test Structure #110
Comments
This is more about reorganizing into smaller packages? I am 100% against tests not living next to the file they are testing. Can you update your proposal with the library files too? |
The tests will live next to the file they are testing. I've updated the proposal with library files |
@terenc3t is this still something you are working on? Could you shine a bit more light on the details of implementation? |
Do we want to move these occurring helper/setup methods ( |
Context
To efficiently maintain all our tests, I am creating this issue to discuss the state of our current tests and how we can refactor them to be better. There's a lot of reusable test code that can ported to a test helper/util like file. Then we can re-use the test helper functions to avoid repeatable code tests
Current test structure:
What I propose:
Test version of config
Similar to
config.go
we should have a test version of config namingtest_config.go
The config will have shorter notary and proposer lock up period. The current notary lock up period is 16128 periods. To deregister a notary takes 30 seconds with simulated backend, this won't scale for testing multiple notaries.Test library
The test library has the following functions
The text was updated successfully, but these errors were encountered: