-
Notifications
You must be signed in to change notification settings - Fork 834
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
chore (tests): move utilities from tests folder to testutil package #1393
chore (tests): move utilities from tests folder to testutil package #1393
Conversation
currently running into import cycles with several tests after this refactor, but I still think it's much cleaner this way - currently fixing those |
I know this PR is not ready but as I see the progress and I am trying to reorganize this as well - I wanted to open the discussion about the directories you are trying to use. I agree with the architecture proposed in this ticket https://linear.app/evmos/issue/ENG-1502/evmos-testing-setup in which the I think that would make more sense than maintaining a |
@facs95 I would actually more be a proponent of keeping the utilities and the actual tests separate just to keep everything clean. The The work to be done here in terms of having the import cycles solved must be done in either of those two options, so I'll continue with this for now ✌️ |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1393 +/- ##
=======================================
Coverage 72.42% 72.42%
=======================================
Files 260 260
Lines 17685 17685
=======================================
Hits 12808 12808
Misses 4308 4308
Partials 569 569
|
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.
Makes sense - I am going to give this an approval not to block other refractos as this separation from the integration tests to the utilities had to be done anyways regardless of the naming. Awesome job solving the cycles!
Can you please add a changelog? |
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.
ACK pending changelog entry under Improvements
Description
Going along with the current restructuring of the way we are handling tests, this PR moves the utility functions in
tests/signer.go
totestutil/signer.go
.This way, the tests folder only contains concrete meta-testing suites like the ledger integration tests on the Evmos side as well as the E2E tests and all utility functions are contained in the testutil folder.
Other than that, this PR
app/ante/...
test files, that was accidentally removed when fixing merge conflicts on a prior PR.testutil
package imports severaltypes
packages, which then use thetestutil
s for testing