forge-coverage - Displays which parts of your code are covered by tests.
forge coverage [options]
Displays which parts of your code are covered by tests.
--report allows you to specify the report type to use for coverage. This flag can be used multiple times.
It has three different options and is set to
summary by default.
Outputs a chart showing what percentage of your code is covered by tests.
Creates a lcov.info file containing your coverage data in the root of your project's directory.
Outputs lines describing the location of uncovered code.
Prints help information.
View summarized coverage:
Create lcov file with coverage data:
forge coverage --report lcov
Output uncovered code locations:
forge coverage --report debug