-
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
lcov version 2.1 breaks coverage report #8281
Comments
I think you can just |
I've fixed the issue with the following command: Locally I'm running:
|
awesome, thanks for confirming, not sure if there's any code change we should do here or only document options to run coverage using LCOV versions > 1.16 (as lcov did for their tests backward compatibility linux-test-project/lcov@2bfaf3d#diff-bc9ca225569a229568d59f0551dc13b2fb4aa27b6815d0903adac1c17ba0899eR6-R8) @mattsse @DaniPopes @klkvr wdyt? thanks |
makes sense to me! |
Docs updated with foundry-rs/book#1237 |
This is fixed with #9438, making it possible to use |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (c8db1e4 2024-06-27T00:18:32.026850000Z)
What command(s) is the bug in?
forge coverage --report lcov && genhtml lcov.info -o report --branch-coverage
Operating System
macOS (Apple Silicon)
Describe the bug
When trying to generate an HTML coverage report based on the
lcov.info
thatforge coverage --report lcov
outputs, the following error occurs:This problem happens if you install
lcov
using Homebrew on MacOS, which currently installslcov
version 2.1.When downgrading to
lcov
version 1.16, this problem goes away.To reproduce error:
brew install lcov forge coverage --report lcov && genhtml lcov.info -o report --branch-coverage
To get around the error:
Downgrade
lcov
to version 1.16.The text was updated successfully, but these errors were encountered: