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

Coverage is %0 even tests are passed #786

Closed
yusufferdogan opened this issue Mar 8, 2023 · 8 comments
Closed

Coverage is %0 even tests are passed #786

yusufferdogan opened this issue Mar 8, 2023 · 8 comments

Comments

@yusufferdogan
Copy link

version => "solidity-coverage": "^0.7.21",
image
image

My Github repo. It is up to date.
https://github.com/yusufferdogan/hardhat-foundry-template

@yusufferdogan
Copy link
Author

@cgewecke @area

@PedroReyes
Copy link

PedroReyes commented Apr 13, 2023

Hello @yusufferdogan ,

I am having the same problem. It seems the problem appears when hardhat-foundry is imported in hardhat.config.ts:

import "@nomicfoundation/hardhat-foundry";

In my case, besides the incorrect coverage report, it is likely impacting also a test that uses Axios for checking BNB/BUSD exchange rate.

Best regards,
Pedro Reyes.

@Whytecrowe
Copy link

I have the same problem if I call:
tenderly.setup() in my hardhat.config file

@hung-native
Copy link

same issue here. Only the interfaces .sol are showing 100% others 0%

@tmavroeid
Copy link

The above problem seems to appear when importing the "@nomicfoundation/hardhat-foundry". So instead of importing it, you may use the proposed way to get the dependencies from the foundry remappings here.

@dimacros
Copy link

I have the same problem, what is the reason?

@Lemmingkje
Copy link

I had a similar problem but it was resolved after doing a hardhat clean

@cgewecke
Copy link
Member

Am closing here because there are a few reasons why this can happen...the primary one I see in the issues currently is when viaIR is turned on for the compiler. Tracking that in #715

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

No branches or pull requests

8 participants