Vcov is a free and open‑source C/C++ code coverage tool for Visual Studio solutions on Windows. It is actively maintained as a fork of the OpenCppCoverage project. Since the original project is no longer actively maintained, Vcov continues its development and improvement.
Its primary use case is unit test coverage, but it can also be used to track executed lines in a program for debugging purposes.
This tool is constantly evolving, and contributions are always welcome! Learn how to get started with our packaging tutorial and maintainer guide.
First, follow one of our quick start guides.
- Windows Vista or higher
- Microsoft Visual Studio 2008 or higher (all editions, including Express edition) , It may also work with earlier versions of Visual Studio.
You can run Vcov with the following command:
vcov.exe --sources MySourcePath* -- YourProgram.exe arg1 arg2For 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.
- Visual studio support Support compiler with program database file
- Non intrusive Just run your program with vccov, no need to recompile your application.
- HTML reporting
- Line coverage.
- Visual Studio Plugin
- Jenkins support
- 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.
- Submit issues
- Submit fixes
The code in this repository is licensed under the GPL-3.0 License.