Created
March 1, 2023 10:55
-
-
Save 0xask3/66423cfb78bae37db1e539d7fd3324a0 to your computer and use it in GitHub Desktop.
Readable forge coverage report
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Generate coverage report | |
forge coverage --report lcov | |
#Remove unwanted files | |
lcov --remove lcov.info -o lcov.info 'node_modules/*' 'script/*' | |
#Generate html file | |
genhtml lcov.info -o ./coverage | |
#Remove lcov file | |
rm lcov.info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment