Skip to content
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: upgrade solidity-coverage to v0.6+ #921

Merged
merged 8 commits into from
Jul 17, 2019
Merged

Conversation

sohkai
Copy link
Contributor

@sohkai sohkai commented Jul 13, 2019

cc @facuspagnuolo Let's see how long coverage takes now :).

@sohkai sohkai requested a review from facuspagnuolo July 13, 2019 09:29
@coveralls
Copy link

coveralls commented Jul 13, 2019

Coverage Status

Coverage decreased (-0.5%) to 98.0% when pulling 9600e96 on upgrade-solidity-coverage into 7988a73 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 98.289% when pulling 52cb0d9 on upgrade-solidity-coverage into de4491f on master.

@@ -59,9 +59,9 @@
"@aragon/cli": "~5.6.0",
"@aragon/test-helpers": "^2.0.0",
"eth-gas-reporter": "^0.2.0",
"ethereumjs-testrpc-sc": "^6.1.6",
"ethereumjs-testrpc-sc": "^6.4.5-sc.3",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since the new solidity-coverage version is using ganache, do we still need this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so, the reason was that lerna hoisting makes running testrpc-sc a bit of a pain unless we explicitly declare this dependency here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, but I we shouldn't need to run it anymore right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we still have to; the ganache-cli.sh script runs testrpc-sc and AFAIK coverage still requires the modified version of testrpc.

@sohkai
Copy link
Contributor Author

sohkai commented Jul 17, 2019

So... looking into this a bit more, unfortunately there's no good way to get Payroll to compile on a coverage environment.

solidity-coverage preprocesses all copied npm dependencies, and in our case, this leads to some mismatches between skipped test files and their dependencies (specifically, the ERC20 from @aragon/os and MaliciousToken).

solidity-coverage has said recently that they'll be moving away from requiring any preprocessing step, and we can revisit this once that's ready. It's also highly unlikely at the current moment that Payroll's coverage tests would run without requiring us to split them up, like we did for normal tests :).

@sohkai sohkai merged commit 2ee67d2 into master Jul 17, 2019
@sohkai sohkai deleted the upgrade-solidity-coverage branch July 17, 2019 14:31
MickdeGraaf pushed a commit to MickdeGraaf/aragon-apps that referenced this pull request Jan 28, 2020
ramilexe pushed a commit to ConsiderItDone/aragon-apps that referenced this pull request Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants