-
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
Hardhat-network-helpers loadFixture is not working when running coverage #4474
Comments
The companion issue for this at solidity-coverage has been resolved & the test helpers seem to work ok. See sc-forks/solidity-coverage#819 (comment) for details. |
Sorry, I'm not sure if there's something we need to do here? |
I would disagree with that. Solidity-coverage not properly handling the hardhat env extension is a major drawback that can't simply be ignored. |
For more context I think the problem was caused by:
It's kind of related to #1374 and #3491 although there are places in Hardhat itself (notably hardhat_reset) where the provider is recreated and it's possible doing this kind of stuff in extendEnv would run into trouble there too? Not certain. Ideally the coverage tool would be entirely passive, rely on source-maps & a tracer api, and never touch the provider. This is difficult to get right though (for example, see Foundry coverage issues |
Version of Hardhat
2.18.0
What happened?
See sc-forks/solidity-coverage#819
Minimal reproduction steps
See sc-forks/solidity-coverage#819
Search terms
chai fixture coverage
The text was updated successfully, but these errors were encountered: