C++ Code coverage in Visual Studio Professional IDE

Mohammad Mohsin Siddiqui 175 Reputation points
2024-01-08T10:57:35.0433333+00:00

We are currently using Visual Studio Professional edition as an IDE for our organization. Recently we came to need to have code coverage for our C++ code base. And we found that there is none support (as far as I could find out) in the professional edition. Visual Studio has code coverage only in Enterprise edition.

https://learn.microsoft.com/en-us/visualstudio/test/using-code-coverage-to-determine-how-much-code-is-being-tested?view=vs-2022&tabs=csharp

Now I need to know is there any other tool available from Visual Studio /Microsoft for VS professional users to get code coverage for C++ source code ? OR is there any MS recommended third part tool available that one can use it?

Any help/pointer would be greatly appreciated. TIA

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,439 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,856 questions
0 comments No comments
{count} vote

Accepted answer
  1. Janarthanan S 700 Reputation points
    2024-01-08T16:04:42.2966667+00:00

    Hi @Mohammad Mohsin Siddiqui

    OpenCppCoverage is an open source code coverage tool for C++ under Windows. This is the Visual Studio plugin for OpenCppCoverage.

    Please find below details in the documentation:

    https://learn.microsoft.com/en-us/visualstudio/test/using-code-coverage-to-determine-how-much-code-is-being-tested?view=vs-2022&tabs=csharp

    Official Visual Studio Plugin for OpenCppCoverage

    https://github.com/OpenCppCoverage/OpenCppCoveragePlugin

    If this helps kindly accept the answer thanks much.

    Regards,

    Janarthanan S


1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.