Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For popular build systems such as CMake or Bazel, dedicated packages simplify the integration process. For more information, see see Collecting Coverage for CMake Projects and  and Collecting Coverage for Bazel Projects. 

For build systems without dedicated integration packages, custom integration is required. That involves modifying compilation and linking rules in appropriate build scripts. The goal is to prefix compilation command lines with the the cpptestcc utility and extend the linker command line to include the code coverage tool runtime library.  

The sections sections Integrating the cpptestcc Code Instrumentation Utility and Linking Instrumented Code explain steps required for custom integrations.