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

Solcover 0 test coverage #804

Open
cowboymarv opened this issue Oct 6, 2022 · 1 comment
Open

Solcover 0 test coverage #804

cowboymarv opened this issue Oct 6, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@cowboymarv
Copy link

cowboymarv commented Oct 6, 2022

It seems that MockProvider is not compatible with Solcover tool, all the metrics are always 0. After changing to ethers provider it started to work immediately. I'm using:

"@nomiclabs/hardhat-waffle": "^2.0.3",  
"ethereum-waffle": "^3.4.4", //tried also 4.0.7  
"hardhat": "^2.11.2",  
"solidity-coverage": "^0.8.2"  
@cowboymarv cowboymarv added the bug Something isn't working label Oct 6, 2022
@pawelpolak2
Copy link
Contributor

When using hardhat-waffle plugin use the mock provider defined in the hardhat runtime environment (hre.waffle.provider). Let me know if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants