This repository was archived by the owner on Jun 29, 2023. It is now read-only.
Draft
Conversation
d36993a to
2f8f036
Compare
2f8f036 to
f1a69b4
Compare
jacque006
commented
Apr 19, 2021
|
Sorry for the delay debugging this. You're seeing zero-coverage because:
You need to run typechain after solidity-coverage executes it's custom compilation. You can do this using a workflow hook in With this config const shell = require('shelljs'); // This is a dep at solidity-coverage, no need to install separately
module.exports = {
skipFiles: ["./test", "./deployment"],
onCompileComplete: async function(config){
shell.exec("typechain --target ethers-v5 './artifacts/contracts/**/!(*.dbg).json'");
}
}; |
|
Oh! Just remembered, there's (at least) one more potential coverage issue. SC doesn't handle It should be possible to achieve the same thing using |
c19952f to
b27d37c
Compare
Collaborator
Author
|
Thanks @cgewecke ! Things are looking much better: Still running into some issues with tests involving gas consumption, but I was expecting that from https://github.com/sc-forks/solidity-coverage#usage-notes |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.


Add coverage for contracts via
solidity-coverageto help identify areas that need additional tests both now and in the future.TODO
hardhat_resetsc-forks/solidity-coverage#574 although I only found one test case which callshardhat_resetskips/onlys