sc-forks / solidity-coverage

Code coverage for Solidity smart-contracts
MIT License
977 stars 264 forks source link

How to fail hardhat coverage when X% lines not covered #723

Closed sanderpick closed 2 years ago

sanderpick commented 2 years ago

For use in CI it would be nice to fail the command if X% of lines are not covered. Must be possible but I can't find the option. Cheers.

cgewecke commented 2 years ago

@sanderpick There's a recipe for doing that here:

https://github.com/sc-forks/solidity-coverage/issues/610#issuecomment-770171711