Forge Test and Forge Coverage not working #7889
Answered
by
keeping2Code
keeping2Code
asked this question in
Q&A
-
I'm having issues running forge test/coverage, Foundry isn't recognizing any of my tests. No matter what changes I make to any of my tests it just says compiler run successful, and when I run forge coverage it keeps coming back 0% on everything. I also used 'forge inspect methods' and I'm able to see all of the functions in the test contract but when I try and run tests -- nothing. I'm using Foundry 0.2.0 so what do I need to do to fix this? |
Beta Was this translation helpful? Give feedback.
Answered by
keeping2Code
May 8, 2024
Replies: 1 comment 1 reply
-
Can you post the exact output of |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for responding I actually figured out what it was. I was importing Ownable from Openzeppelin and having it initialize an initialOwner in the constructor, once I deleted that in my contracts everything was working as normal!