google-test:代码覆盖率 [英] google-test: code coverage

查看:457
本文介绍了google-test:代码覆盖率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过使用Google测试框架进行测试来覆盖代码?

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

推荐答案

是的,我已经成功使用了免费(gcov)和商业(CTC ++)工具。无需特殊步骤,只需遵循文档即可。

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

更多详细信息,请参见此博客
http://googletesting.blogspot.dk/2014/07/measuring-coverage-at-google.html

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

这篇关于google-test:代码覆盖率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆