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

feat(forge): disable coverage for assertions #4294

Closed
Tracked by #4442
PaulRBerg opened this issue Feb 7, 2023 · 4 comments · Fixed by #8413
Closed
Tracked by #4442

feat(forge): disable coverage for assertions #4294

PaulRBerg opened this issue Feb 7, 2023 · 4 comments · Fixed by #8413
Labels
C-forge Command: forge Cmd-forge-coverage Command: forge coverage T-feature Type: feature

Comments

@PaulRBerg
Copy link
Contributor

PaulRBerg commented Feb 7, 2023

Component

Forge

Describe the feature you would like

Assertions are never meant to fail unless there is a bug, but Forge currently reports partial coverage for assert statements:

Partial coverage for assertions

Related issue in the solidity-coverage repo: sc-forks/solidity-coverage#269.

@KholdStare
Copy link
Contributor

@mattsse @gakonst Any plans to fix this? At the moment whenever auditors run coverage on our code we always have to give the caveat that coverage is under-reported because of assert statements.

Thank you.

@PaulRBerg
Copy link
Contributor Author

Also if FREI-PI picks up steam, assertions' coverage will become an even bigger problem.

@KholdStare
Copy link
Contributor

KholdStare commented Jul 11, 2024

I think this is not fixed in spirit yet. require should still be a branch. Linking to my comment from the PR: #8413 (comment)

@grandizzy
Copy link
Collaborator

I think this is not fixed in spirit yet. require should still be a branch. Linking to my comment from the PR: #8413 (comment)

Thank you, will check!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-forge Command: forge Cmd-forge-coverage Command: forge coverage T-feature Type: feature
Projects
Status: Completed
Development

Successfully merging a pull request may close this issue.

4 participants