Enable coverage testing by passing -DBUILD_COVERAGE=ON on the cmake command line. In the build directory, you can now produce a report: $ lcov --zerocounters --directory . $ lcov --capture --initial --directory . --output-file app $ make test $ lcov --no-checksum --directory . --capture --output-file app.info $ genhtml app.info Look at the report by loading index.html into your browser.