Refactor: Move tests to src/tests#155
Merged
Merged
Conversation
mrLSD
approved these changes
Jun 18, 2021
sept-en
approved these changes
Jun 18, 2021
Contributor
sept-en
left a comment
There was a problem hiding this comment.
Good job! This should really speed up the CI process.
Added some small question there, check it, please.
mfornet
approved these changes
Jun 19, 2021
Contributor
mfornet
left a comment
There was a problem hiding this comment.
Love those PR when the amount of LOC removed are 8x the amount of LOC added!
joshuajbouw
approved these changes
Jun 19, 2021
Contributor
joshuajbouw
left a comment
There was a problem hiding this comment.
Besides nit, looks good!
artob
added a commit
that referenced
this pull request
Jun 23, 2021
* Remove engine feature flag. (#154) * Move tests to `src/tests`. (#155) * Improve the `EvmErc20.sol` contract. (#156) * Properly document endianess. (#157) * Fix NEP-141 compliance. (#158) Co-authored-by: Ahmed Ali <ahmed@aurora.dev> Co-authored-by: Frank Braun <frank@aurora.dev> Co-authored-by: Kirill <kirill@aurora.dev> Co-authored-by: Marcelo Fornet <marcelo@aurora.dev> Co-authored-by: Michael Birch <michael@aurora.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Per matklad's blog post, it is better in our situation to have all our tests be part of the same compilation artifact (as opposed to rust's "integration tests" which are all compiled separately).
In this PR we resolve the conflicting versions of wasmtime which was preventing us from having all our tests in one place. It also moves most of the tests from
teststosrc/testsas suggested in the blog post. An additional benefit of moving the tests under the main source directory is being able to easily reuse code in tests (for example I could delete theAuroraConfigstruct from the state migration test because it duplicated some things fromtest_utils).The only tests that remain in
testsare the ones for the connector. These in particular have a lot of code duplication from production which will be able to be eliminated once it is brought undersrc/tests. However, we are not doing that in this PR because it needs #154 to be merged first. So it will be done as a follow up PR.One other thing I noticed is that the new
meta-callfeature meant we were not running the tests for meta parsing any more. This is also corrected in this PR.