google-test: code coverage

后端 未结 3 1671
鱼传尺愫
鱼传尺愫 2020-12-24 11:10

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

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-24 12:11

    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

提交回复
热议问题