• Home
  • Raw
  • Download

Lines Matching +full:report +full:- +full:coverage

2 # Boost Software License - Version 1.0 - August 17th, 2003
8 # Software, and to permit third-parties to whom the Software is furnished to
15 # works are solely in the form of machine-executable object code generated by
20 # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
26 # 2012-01-31, Lars Bilke
27 # - Enable Code Coverage
29 # 2013-09-17, Joakim Söderberg
30 # - Added support for Clang.
31 # - Some additional usage instructions.
33 # 2016-11-02, Azat Khuzhin
34 # - Adopt for C compiler only (libevent)
42 # 3. Set compiler flags to turn off optimization and enable coverage:
43 # SET(CMAKE_CXX_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage")
44 # SET(CMAKE_C_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage")
47 # which runs your test executable and produces a lcov code coverage report:
53 # # otherwise the coverage generation will not complete.
54 # coverage # Name of output directory.
58 # cmake -DCMAKE_BUILD_TYPE=Debug ..
84 MESSAGE( WARNING "Code coverage results with an optimized (non-Debug) build may be misleading" )
91 # If not, no coverage report will be created!
93 # HTML report is generated in _outputname/index.html
95 # Pass them in list form, e.g.: "-j;2" for -j 2
110 ${LCOV_PATH} --directory . --zerocounters
115 # Capturing lcov counters and generating report
116 COMMAND ${LCOV_PATH} --directory . --capture --output-file ${_outputname}.info
117 …COMMAND ${LCOV_PATH} --remove ${_outputname}.info 'tests/*' '/usr/*' --output-file ${_outputname}.…
118 COMMAND ${GENHTML_PATH} -o ${_outputname} ${_outputname}.info.cleaned
119 COMMAND ${CMAKE_COMMAND} -E remove ${_outputname}.info ${_outputname}.info.cleaned
122 …COMMENT "Resetting code coverage counters to zero.\nProcessing code coverage counters and generati…
125 # Show info where to find the report
128 COMMENT "Open ./${_outputname}/index.html in your browser to view the coverage report."
137 # Pass them in list form, e.g.: "-j;2" for -j 2
154 …COMMAND ${GCOVR_PATH} -x -r ${CMAKE_SOURCE_DIR} -e '${CMAKE_SOURCE_DIR}/tests/' -o ${_outputname}…
156 COMMENT "Running gcovr to produce Cobertura code coverage report."
159 # Show info where to find the report
162 COMMENT "Cobertura code coverage report saved in ${_outputname}.xml."