google-test: code coverage

gruszczy picture gruszczy · Mar 1, 2010 · Viewed 39.2k times · Source

Is it possible to get code coverage done by tests using google test framework?

Answer

chalup picture chalup · Mar 1, 2010

Yes, I've successfully used both free (gcov) and commercial (CTC++) tools. No special steps are needed, just follow the documentation.

More details can be found in this blog http://googletesting.blogspot.dk/2014/07/measuring-coverage-at-google.html