foundry-template
foundry-template copied to clipboard
genhtml: command not found | error: script "test:coverage:report" exited with code 127
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
You need lcov and genhtml installed on your machine:
https://formulae.brew.sh/formula/lcov
I should mention this in the README somewhere.