C/C++test can collect coverage information from unit testing, functional testing, as well as other kinds of application execution. C/C++test supports a range of coverage metrics and can be used for native and cross-application development.
Collecting coverage information with C/C++test involves three phases:
- Instrumenting and building source code
- Executing instrumented code
- Generating a report
The Instrumenting and Building Instrumented Source Code section provides a general description of integrating with a build system. For details on integrating with Make- or MSBuild-based projects, see Integrating with Make-based Build Systems and Integrating with MSBuild.