
Development Versions: 13 / devel
This documentation is for an unsupported version of PostgreSQL.

32.5. Test Coverage Examination


A typical workflow would look like this:

make check # or other test suite
make coverage-html


If you don't have lcov or prefer text output over an HTML report, you can also run

make coverage

instead of make coverage-html, which will produce .gcov output files for each source file relevant to the test. (make coverage and make coverage-html will overwrite each other's files, so mixing them might be confusing.)

To reset the execution counts between test runs, run:

make coverage-clean