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

genhtml: command not found | error: script "test:coverage:report" exited with code 127 #46

Open
SvenMeyer opened this issue Feb 16, 2024 · 1 comment
Labels
effort: low Easy or tiny task that takes less than a day. priority: 3 Nice-to-have. Willing to ship without this. type: docs Changes to documentation. work: clear Sense-categorize-respond. The relationship between cause and effect is clear.

Comments

@SvenMeyer
Copy link

system : Arch Linux 6.6.10-1-MANJARO

I ran the coverage report on a fresh instance (no changes) of the template and got this ...

$ bun run test:coverage:report
$ forge coverage --report lcov && genhtml lcov.info --branch-coverage --output-dir coverage
[⠊] Compiling...
[⠔] Compiling 23 files with 0.8.23
[⠑] Solc 0.8.23 finished in 2.38s
Compiler run successful!
Analysing contracts...
Running tests...
Wrote LCOV report.
/usr/bin/bash: line 1: genhtml: command not found
error: script "test:coverage:report" exited with code 127
@PaulRBerg
Copy link
Owner

You need lcov and genhtml installed on your machine:

https://formulae.brew.sh/formula/lcov

I should mention this in the README somewhere.

@PaulRBerg PaulRBerg added priority: 3 Nice-to-have. Willing to ship without this. effort: low Easy or tiny task that takes less than a day. type: docs Changes to documentation. work: clear Sense-categorize-respond. The relationship between cause and effect is clear. labels Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: low Easy or tiny task that takes less than a day. priority: 3 Nice-to-have. Willing to ship without this. type: docs Changes to documentation. work: clear Sense-categorize-respond. The relationship between cause and effect is clear.
Projects
None yet
Development

No branches or pull requests

2 participants