C + + Open source Code Coverage Tool Opencppcoverage Introduction (Windows)

Source: Internet
Author: User

With respect to the Code Coverage Statistics tool, the GCC built-in support for Gcov, with compile-time plus parameter options for code insertion, allows code coverage to be implemented under the Linux platform. In the Windows platform, as early as a few years ago, I have not found a particularly useful and open-source coverage tools, so the company was its own implementation of a set, the use is not very convenient.

The same problem was recently encountered, but fortunately, the C + + code coverage tool for an open source Windows platform appeared in front of me: Opencppcoverage.

Opencppcoverage is an open source C + + code coverage tool under the Windows platform, easy to use, full of functionality and powerful. 2014 only launched, only hate did not find early.

Very simple to use, it does not need to be inserted at compile time, only need to have PDB file, run-time plug-in, through the opencppcoverage boot process.

Official website: https://opencppcoverage.codeplex.com/

Functions are also relatively complete, the main features are:

    1. No need to recompile the program, just use Opencppcoverage to run the program.
    2. The performance overhead is relatively small.
    3. Filter by module, code path.
    4. Automatically generate HTML coverage results reports.
    5. Multiple coverage result merges are supported.
    6. Integrated Jenkins

Don't use it too easy, do it:

Opencppcoverage.exe --sources mysourcepath--yourprogram.exe arg1 arg2

Working with Documents: https://opencppcoverage.codeplex.com/documentation

Jenkins Integration: Https://opencppcoverage.codeplex.com/wikipage?title=Jenkins

Coverage Detail Results

Jenkins Integration

C + + Open source Code Coverage Tool Opencppcoverage Introduction (Windows)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.