This example uses C/C++test CT coverage plugin for CMake.
Go to <INSTALL_DIR>/examples/CovApplication
mkdir .build |
cd .build cmake -DCPPTEST_COVERAGE=ON -DCPPTEST_HOME=$PWD/../../.. .. make |
./timer |
.coverage/lastrun
. make cpptestcov-compute |
.coverage/lastrun
into .coverage/cumulative
. make cpptestcov-merge |
.coverage/cumulative
. make cpptestcov-suppress |
.coverage/cumulative
. make cpptestcov-report |
See <INSTALL_DIR>/integration/cmake/cpptest-coverage.cmake
for more details.