CMake/Help/command/ctest_coverage.rst

26 lines
846 B
ReStructuredText
Raw Normal View History

ctest_coverage
--------------
Collect coverage tool results.
::
ctest_coverage([BUILD build_dir] [RETURN_VALUE res] [APPEND]
[LABELS label1 [label2 [...]]])
Perform the coverage of the given build directory and stores results
in Coverage.xml. The second argument is a variable that will hold
value.
The LABELS option filters the coverage report to include only source
files labeled with at least one of the labels specified.
The APPEND option marks results for append to those previously
submitted to a dashboard server since the last ctest_start. Append
semantics are defined by the dashboard server in use.
2015-02-17 23:57:26 +03:00
The QUIET option suppresses any CTest-specific non-error output
that would have been printed to the console otherwise. The summary
indicating how many lines of code were covered is unaffected by this
option.