OpenZeppelin / openzeppelin-test-environment

[Not actively maintained] One-line setup for blazing-fast smart contracts tests
https://docs.openzeppelin.com/test-environment
MIT License
90 stars 39 forks source link

Add support for solidity-coverage #124

Closed ylv-io closed 4 years ago

ylv-io commented 4 years ago

Adds support for solidity-coverage at test-env via exposing runCoverage method. Check Contracts PR and test-integration/mocha/coverage.js to see how to integrate to your project.

frangio commented 4 years ago

The PR includes a Yarn lockfile even though this project has an npm lockfile.

ylv-io commented 4 years ago

fs.rename doesn't work because coverage requires to skip some contracts during instrumentation phase. It would require to move file one by one, rather entire folder at once.

ylv-io commented 4 years ago

Comments appreciated as usual. Sorry for a delay. I've also run updated coverage on contracts and it works just fine!