ctest_coverage.rst 846 B

12345678910111213141516171819202122232425
  1. ctest_coverage
  2. --------------
  3. Collect coverage tool results.
  4. ::
  5. ctest_coverage([BUILD build_dir] [RETURN_VALUE res] [APPEND]
  6. [LABELS label1 [label2 [...]]])
  7. Perform the coverage of the given build directory and stores results
  8. in Coverage.xml. The second argument is a variable that will hold
  9. value.
  10. The LABELS option filters the coverage report to include only source
  11. files labeled with at least one of the labels specified.
  12. The APPEND option marks results for append to those previously
  13. submitted to a dashboard server since the last ctest_start. Append
  14. semantics are defined by the dashboard server in use.
  15. The QUIET option suppresses any CTest-specific non-error output
  16. that would have been printed to the console otherwise. The summary
  17. indicating how many lines of code were covered is unaffected by this
  18. option.