1

I have C++ project in VS 2017 with some Catch tests in it. But I am not able to figure out how to get the test coverage metrics.

Although I prefer native VS solution I am happy to use VS extensions of necessary, but from what I can see ReSharper does not support it:

You are right, neither profiling nor coverage are supported for C++

NoSenseEtAl
  • 28,205
  • 28
  • 128
  • 277
  • This might be related to [this question](https://stackoverflow.com/questions/33042/how-can-i-measure-cppunit-test-coverage-on-win32-and-unix), since measuring coverage in C++ is a problem independent of the test framework. EDIT: Nevermind, the question and answers are quite 'ancient' – Tobias Ribizel Jun 30 '17 at 18:11

1 Answers1

1

It seems like Visual Studio provides coverage metrics with its profiling tools already. See this article for details

Tobias Ribizel
  • 5,331
  • 1
  • 18
  • 33