-
Notifications
You must be signed in to change notification settings - Fork 926
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
test(core|state|swamp): unify and refactor core/app testing utilities #1551
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1551 +/- ##
==========================================
- Coverage 55.09% 55.04% -0.05%
==========================================
Files 211 212 +1
Lines 12953 13019 +66
==========================================
+ Hits 7136 7166 +30
- Misses 5091 5117 +26
- Partials 726 736 +10
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much cleaner, looks great
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls rename grpc
file to grpc_testing
or something to indicate that this functionality is for testing only. Otherwise lgtm and thank you for this :)
This PR is one of the cleaning PRs that I am doing. It removes the usage of KVStore. Besides simplifying and unifying tests, it also fixes all the existing and potential "bind already in used" errors from the app and tendermint tandem. I tested this by running all the tests with
-parallel 12
, which runs in parallel per pkg. With this flag, we can potentially speed up the time it takes to run all the tests on Ci and locally. Going further, we can also consider running all the tests in parallel with only one instance of the app running, rather than an instance per testWould love this diff to be reddish, but unfortunately, I had to copy a bunch of code from Cosmos SDK. The rationale is in the comments. Also, see this.