C++ code coverage tool running on command line [closed]

浪子不回头ぞ 提交于 2019-12-21 20:54:50

问题


I use code coverage tool for writing unit testing cases. I have a code coverage tool but only have to do everything through its GUI interface. Ideally I'd like to get a tool that is able to produce a text output (.diff is the best) on individual .cpp files. Does such a tool exist?


回答1:


gcov can and does produce text output. Make sure you use a recent gcc to get coverage of shared libraries.

I'm not sure how you can have diff output of coverage though?



来源:https://stackoverflow.com/questions/459287/c-code-coverage-tool-running-on-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!