-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
"@nomicfoundation/hardhat-foundry" breaks coverage tests. #3961
Comments
Hey @LucasGrasso, sorry for not responding sooner. I can't reproduce this, at least in the simple Hardhat sample project. Can you try again with the latest versions of the plugins and see if it's still happening? And if it's still happening, could you create and share a minimal reproducible example? |
Hello @fvictorio , don't worry. As soon as I get some spare time I'll get to it. |
@fvictorio I am able to reproduce this issue with the following minimal steps
|
Thanks @tariqkb, you are right. I think I forgot to run |
Hi, I am getting the same issue, just wondering if there was any update. Thanks |
I’m getting the same error. It seems that the problem is |
Same issue here |
Hello all, I had this same exact issue. Removing the foundry.toml file in the base of the repository fixed this issue. Code coverage is no longer 0% |
This should be fixed now in the latest solidity-coverage release: Make sure you run the clean task after you update:
If there are further problems after installing the patch please report to solidity-coverage issue 853 |
works on my end! @cgewecke goat 🥇 |
It works for me too, thanks! |
@bingen Yes that sounds like it might be related - have opened a ticket about this in the coverage repo at the link above and will take a look later today. |
I am going to close this, thanks @cgewecke |
Version of Hardhat
2.14.0
What happened?
I Don't know if this is a solidity-coverage or a hardhat-foundry issue, but after importing the latter, it just seems to break coverage tests.
With hardhat-foundry imported;
Without hardhat-foundry imported:
Tests in Foundry and in Hardhat were made for
DecentBatchDepositor.sol
. Sorry for the lack of a profound explanation, I just discovered it randomly and seems like a incompatibility bug. Thanks for your help.Minimal reproduction steps
npx hardhat coverage
npx hardhat coverage
Search terms
foundry, coverage
The text was updated successfully, but these errors were encountered: