问题
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