- Install Foundry
- Run
forge installto install required dependencies.
- Run
forge testto execute all tests.
- Run
forge coverageto check code-coverage - To generate a graphical front-end for the coverage report using
lcov.- Install lcov
- A
lcov.infofile is included in this repository. The following command will generate the graphical report from this file: - Run
forge coverage --report lcov && genhtml lcov.info --branch --output-dir coverage --rc derive_function_end_line=0 - Open the
report/index.htmlfile in your browser to view the coverage report.