-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Add Foundry tests to coverage #5098
Add Foundry tests to coverage #5098
Conversation
|
I tried running this, I'm getting an error
I'm using Also, I'm missing how this is working. Should the |
the lcov processing is only needed for the foundry report, so it has to be done after that. i also don't like that the script command in |
yes |
That I inderstand, but after that processing nothing gets done with the |
the workflow uploads |
Hoooo ... then I don't think the foundry part should run when doing coverage locally on our machine (unless we find a way to report an aggregate). If we have a script it could distinguish between CI and local, and only run the foundry + post processing is in CI. |
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adds Foundry tests to coverage and allows Codecov to combine both reports. The
coverage
script command removes zero hits in the Foundry report so that both reports can be merged exclusively, otherwise Codecov will mark lines as not covered, when in reality they are covered by Hardhat.It increases coverage by 0.07% overall, 0.98% in Governor and 0.65% in Clones. Time increase for workflow is very small.
PR Checklist
npx changeset add
)