Skip to content

Conversation

@cgewecke
Copy link
Contributor

@cgewecke cgewecke commented Jul 2, 2019

Fixes solidity-coverage 330

Have updated your version to solidity-coverage@beta. (Believe this is necessary when using ZOS) and addressed some issues in truffle-config.js.

Have also added shell environment variable to the npm script to toggle the gas reporter off when coverage is running. These tools can't really be run concurrently because coverage alters the gas consumption a lot.

Report looks like this on my machine.

Screen Shot 2019-07-02 at 10 38 40 AM

@itinance itinance merged commit e25309f into itinance:master Jul 2, 2019
@itinance
Copy link
Owner

itinance commented Jul 3, 2019

Thank you so much @cgewecke, much appreciated! Now it works.

I can confirm that solidity-coverage@beta is required in order to work with zos, as you already mentioned, to prevent sc-forks/solidity-coverage#330 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Solidity-coverage recognizes not a single line of tested code?

2 participants