September 2018
Intermediate to advanced
606 pages
14h 32m
English
Through the following steps, we will enable coverage analysis and upload the results to the dashboard:
option(ENABLE_COVERAGE "Enable coverage" ON)if(ENABLE_COVERAGE) if(CMAKE_CXX_COMPILER_ID MATCHES GNU) message(STATUS "Coverage analysis with gcov enabled") target_compile_options(sum_integers PUBLIC -fprofile-arcs -ftest-coverage -g ) target_link_libraries(sum_integers PUBLIC gcov ) else() message(WARNING "Coverage not supported for this compiler") endif()endif()
Read now
Unlock full access