Waffle icon indicating copy to clipboard operation
Waffle copied to clipboard

Solcover 0 test coverage

Open cowboymarv opened this issue 2 years ago • 1 comments

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 avatar Oct 06 '22 13:10 cowboymarv

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

pawelpolak2 avatar Jan 30 '23 19:01 pawelpolak2