Lines Matching full:coverage
1 # Unit Test Code Coverage
3 Code coverage for the coreboot unit tests allows us to see what lines of
5 author to see where they need to add test cases for additional coverage.
7 Code coverage requires `lcov`; install the tool if necessary by
10 Enable code coverage in your unit test build by setting the environment
14 The build output directory is either `build/tests` or `build/coverage`,
24 * `coverage-report` generates a code coverage report from all of the
26 coverage report, open `build/coverage/coverage_reports/index.html` in your web
28 * `clean-coverage-report` deletes just the coverage report.
30 The `coverage-report` and `clean-coverage-report` targets automatically set
36 `COV=1 make unit-tests coverage-report` builds all of the unit tests with code
37 coverage, runs the unit tests, and generates the code coverage report.
39 `COV=1 make build-unit-tests` builds all of the unit tests with code coverage.
42 coverage if they are out-of-date.
44 `COV=1 make coverage-report` creates the code coverage report. This
46 the code coverage data from the output directory, which it assumes already
49 `COV=1 make tests/lib/uuid-test coverage-report` builds the uuid test
50 with code coverage, runs it, and generates a code coverage report just for
53 As a demonstration that building with and without coverage uses different
55 1. `make build-unit-tests` builds unit tests without code coverage into
57 2. `COV=1 make clean-unit-tests` cleans `build/coverage`