OpenCppCoverage
OpenCppCoverage, a tool that covers C++ under Windows, is an open-source code cover tool. It is used primarily for unit testing coverage. However, you can also use the tool to determine the executed lines of a program for debugging purposes. Visual Studio support. Visual Studio support. OpenCppCoverage will run your program without you needing to recompile it. HTML reporting, line coverage. Run as Visual Studio Plugin. Jenkins support and optimized build. A regular expression can be used to exclude a line. Coverage for child processes. Coverage aggregation allows you to run multiple code coverages and combine them into one report. Requires Windows Vista and higher. All editions, including the Express edition, require Microsoft Visual Studio 2008 or greater. It should also work with previous versions of Visual Studio. The Test Explorer window can be used to run the tests.
Learn more
grcov
grcov aggregates code coverage information from multiple source files. grcov processes.profraw files and.gcda file which can be generated using llvm/clang/gcc. grcov can also process lcov files (for JS cover) and JaCoCo (for Java coverage). Supported operating systems include Windows, macOS, and Linux.
Learn more
froglogic Coco
Coco®, a tool for multi-language code coverage, is available. Automated source code instrumentation can be used to measure test coverage for statements, branches, and conditions. When a test suite is run against an instrumented application, data can be collected that can be later analyzed. This analysis can be used for understanding how much of the source code was touched by tests, which additional test suites need to be written, and how the test coverage has changed over time. Identify dead or untested code, redundant tests, and untested code. Identify the impact of a patch and code coverage. Coco supports branch coverage, statement coverage, MC/DC, and other levels. Linux, Windows, RTOS, and other platforms. GCC, Visual Studio and embedded compilers are all available. You can choose from text, HTML, XML and Cobertura report formats. Coco can also integrate with other build, test, and CI frameworks such as JUnit Jenkins, SonarQube, and SonarQube.
Learn more
PHPUnit
PHPUnit needs the dom, json extensions. These extensions are usually enabled by default. PHPUnit also needs the reflection, pcre and spl extensions. These extensions are default enabled and cannot be disabled without patching PHP’s build system or C sources. To use the code coverage report feature, you will need to have the Xdebug (2.7.0 and later) and tokenizer extensions. The xmlwriter extension is required to generate XML reports. Unit tests are intended to be a good practice for developers to identify and fix bugs, refactor code, and serve as documentation for the unit of software being tested. Unit tests should cover all possible paths within a program to reap these benefits. A unit test typically covers one path within a function or method. A test method is not always an independent, encapsulated entity. There are often implicit dependencies between test method, which are hidden in the test's implementation scenario.
Learn more