-
Notifications
You must be signed in to change notification settings - Fork 1.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
fix(forge
): disable artifacts for coverage
#9692
Conversation
should we just flip the second bool here? foundry/crates/forge/bin/cmd/coverage.rs Line 110 in 55badd4
coverage should not write any artifacts given that it already disables cache |
While not in this PR, I'd like to enable caching for coverage (backlog from: #9366). Moreover, I think that would be severely breaking for any external workflows that users have ?? cc @grandizzy @zerosnacks |
I think in scope of solving issue here #8840 (comment) flipping |
Makes sense. Can flip |
@grandizzy @klkvr ptal |
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.
lgtm!
forge
): diff artifacts dir for coverageforge
): disable artifacts for coverage
forge
): disable artifacts for coverageforge
): disable artifacts for coverage
Motivation
Closes #8840
Saves coverage artifacts and build-info to a separate directory
out/coverage
andout/coverage/build-info
respectively. This prevents users from mistakenly deploying unoptimized contracts, see: #8840 (comment)Solution
Artifacts generated by
forge coverage
are written toout/coverage
.