-
Notifications
You must be signed in to change notification settings - Fork 54
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(test-helpers): remove test-helpers part one: contracts folder #1977
base: dev
Are you sure you want to change the base?
Conversation
Even if this commit looks huge, it is actually quite simple: - It removes `contracts` folder from `@tps/test-helpers` and its content - Moves ADynamicForwarder and DynamicScriptHelpers locally to DotVoting - Change DotVoting imports - Inline IForwarder and rename to solve issues with coverage - Removing pre and post coverage hooks, unnecessary for validation after inlining the interface
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.
We should discuss making the IForwarder change without addressing the bug in the coverage tool. Curious what @Quazia thinks
// TODO: Research why using the @aragon/os version breaks coverage | ||
import "@aragon/os/contracts/common/IForwarder.sol"; |
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.
Let's not re-implement this until we decide how to proceed with renaming this import during coverage
"precommit": "lint-staged", | ||
"precoverage": "sed -i 's+@aragon/os/contracts/common/IForwarder.sol+./IForwarder.sol+g' ../shared/test-helpers/contracts/common/ADynamicForwarder.sol", |
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.
It doesn't make sense to remove this since it addresses a bug in the coverage tool. We should upgrade our coverage tool before removing this since it doesn't make sense to create our own duplicated import when it already exists in a dependency we're using
style: remove trailing whitespaces everywhere
Even if this commit looks huge, it is actually quite simple:
contracts
folder from@tps/test-helpers
and its contentinlining the interface
Note: ADynamicForwarder and DynamicScriptHelpers are now part of DotVoting app, that is why coverage was decreased. I decided to not ignore those files, as I think they should be tested as well.