C++ Test Coverage Tool

The C++ Test Coverage tool enables the collection and display of code coverage data on C++ software source code bases of arbitrary size. It is a member of SD's family of Test Coverage tools.

C++ Test Coverage Features

  • Available for a many C++ dialects: ANSI, GCC3/4/5, Microsoft VisualC++ 6, VisualStudio2005-2013, C++11, C++14. Now handles draft standard for C++17 .
  • Not dependent on compiler or specific object format
  • Works with arbitrary subsets of source code base
  • Can accumulate data from multiple test runs
  • Handles tens of thousands of files
  • Extremely low probe overhead both in time and space; bit vector version for embedded systems
  • Operations to combine Test Coverage data for unions, deltas, intersections
  • Produces coverage report with summaries for the entire application, and for functions, classes, namespaces, files and subsystems by directories. An XML version of the report can also be produced.
  • Test coverage collection can run on platform separate from Test Coverage tool
  • User-customizable probe implementation/coverage data extraction enables operation with unusual embedded systems

The C++ Test Coverage tool has an intuitively simply display. It shows

  • Possible test coverage vector (TCV) result files
  • Selected/accumulated/computed TCV files
  • List of files being tested for coverage
  • Locations of probe points in files
  • Browsable source text of file of current interest
  • Covered/uncovered status of each probe point on file source text
  • Summary statistics for percentage covered

C++ Test Coverage Display screen shot

Here's a screenshot (in a popup window) of the C++ Test Coverage display. If you have popups disabled, try this link: screen shot. Green ("go") code has been covered/executed by some test; red ("stop") code has not been executed by any test.

Download an evaluation copy

Have a nonstandard dialect of C++ or a custom C++ compiler? Semantic Designs can economically configure a test coverage tool for it.

Semantic Designs also offers C++ Profiler Tools

For more information: info@semanticdesigns.com    Follow us at Twitter: @SemanticDesigns

C++
Test Coverage