MCPcopy Create free account
hub / github.com/OpenCppCoverage/OpenCppCoverage

github.com/OpenCppCoverage/OpenCppCoverage @release-0.9.9.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release release-0.9.9.0 ↗ · + Follow
1,037 symbols 2,237 edges 293 files 625 documented · 60% updated 2y agorelease-0.9.9.0 · 2020-05-21★ 1,00480 open issues

Browse by type

Functions 795 Types & classes 242
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

OpenCppCoverage

OpenCppCoverage is an open source code coverage tool for C++ under Windows.

The main usage is for unit testing coverage, but you can also use it to know the executed lines in a program for debugging purpose.

Features:

  • Visual Studio support: Support compiler with program database file (.pdb).
  • Non intrusive: Just run your program with OpenCppCoverage, no need to recompile your application.
  • HTML reporting
  • Line coverage.
  • Run as Visual Studio Plugin: See here for more information.
  • Jenkins support: See here for more information.
  • Support optimized build.
  • Exclude a line based on a regular expression.
  • Child processes coverage.
  • Coverage aggregation: Run several code coverages and merge them into a single report.

Requirements

  • Windows Vista or higher.
  • Microsoft Visual Studio 2008 or higher all editions including Express edition. It should also work with previous version of Visual Studio.

Download

OpenCppCoverage can be downloaded from here.

Usage

You can simply run the following command:

OpenCppCoverage.exe --sources MySourcePath* -- YourProgram.exe arg1 arg2

For example, MySourcePath can be MyProject, if your sources are located in C:\Dev\MyProject.

See Getting Started for more information about the usage. You can also have a look at Command-line reference.

Core symbols most depended-on inside this repo

Shape

Function 432
Method 363
Class 235
Enum 7

Languages

C++89%
TypeScript11%
Python1%

Modules by API surface

Exporter/Html/Template/third-party/JQuery/jquery-3.4.1.min.js83 symbols
CppCoverage/Options.cpp22 symbols
CppCoverage/DebugInformationEnumerator.cpp22 symbols
FileFilter/PathMatcher.cpp19 symbols
Exporter/Html/Template/third-party/google-code-prettify/run_prettify.js17 symbols
CppCoverage/OptionsParser.cpp16 symbols
CppCoverage/Debugger.cpp16 symbols
Exporter/Html/TemplateHtmlExporter.cpp14 symbols
Exporter/Html/Template/third-party/google-code-prettify/prettify.js14 symbols
CppCoverage/ExecutedAddressManager.cpp14 symbols
Tools/Tool.cpp13 symbols
FileFilter/UnifiedDiffParser.cpp13 symbols

For agents

$ claude mcp add OpenCppCoverage \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page