How is the coverage functions of the template are to be used? #84
Replies: 2 comments
-
There is a preset that is run in CI on Ubuntu using Clang to get you started with coverage. There used to be an OpenCppCoverage file as well as a template to help people do coverage on Windows as well, but I deemed it unnecessary. The file cmake-init/templates/common/cmake/coverage.cmake contains some targets for lcov and the necessary flags for coverage instrumentation are passed in via presets. The For complete coverage instructions, you may just refer to the coverage CI job. |
Beta Was this translation helpful? Give feedback.
-
ok, I was trying to figure out how I could use that in vscode, the cmake integration is not as clear as running the CLI commands... I will try to figure this out based on the CLI commands seen in there, thanks. |
Beta Was this translation helpful? Give feedback.
-
Is there some instructions on how the coverage aspect of the template are to be used?
I ran cmake build with preset dev-coverage and target all, I see my code compiling, test run, then I run cmake with target coverage, I get a coverage.info file but it is empty, I am unclear what I am doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions