Skip to content

Getting started

Cover++ is a code coverage tool for C/C++ applications on Windows.

Grab the latest release from GitHub. You can use the installer or the portable archive.

For details, head over to the installation guide.

To run my-app.exe while collecting coverage, use:

Terminal window
cover++ run my-app.exe

If you need to pass arguments to your app, you can append them to the invocation above.

This command:

  • expects to find my-app.pdb next to my-app.exe
  • runs my-app.exe under coverage
  • places the coverage report at ./report.coverpp

Cover++ stores coverage results in a compact binary format.

To view the report you just generated, use:

Terminal window
cover++ view

This will start a local web server and open your browser. To stop the server, type q and Enter or use Ctrl+C.

By default, view (like all commands that operate on a report file) looks for ./report.coverpp. To view a different report, append the file path to the command. You can find more details here.