[英]code coverage - which run covers which code?
The POC: https://gist.github.com/1197309 POC: https : //gist.github.com/1197309
I would like to determine which of the three runs ./prime
, ./prime 0
and ./prime 1
have covered which code and have it nicely displayed in the HTML report. 我想确定这三个运行中的./prime
,./ ./prime 0
和./prime 1
涵盖了哪些代码,并将其很好地显示在HTML报告中。
Is this possible in a straightforward fashion? 这是否可能简单明了? How to do it? 怎么做? Other tools are ok, as long as they work on linux with gcc. 其他工具也可以,只要它们在带有gcc的linux上可以使用。
Thanks. 谢谢。
Note: I would prefer a working fork of that gist :-) I'm using a "regular" developer linux distribution, so no worries about the tools. 注意:我更喜欢那种要旨的工作叉:-)我使用的是“常规”开发人员linux发行版,因此不必担心这些工具。
Any other improvements are welcome. 任何其他改进都是值得欢迎的。
Sure: Just rename the coverage file after each run, then examine the three files individually and create a merged HTML report. 确定:每次运行后只需重命名coverage文件,然后分别检查这三个文件并创建合并的HTML报告即可。
Or create HTML from the three files and merge the HTML - that might be more simple than writing a parser for the coverage output. 或者从这三个文件中创建HTML并合并HTML-这可能比为coverage输出编写解析器更简单。
Oh, you meant "built-in" or "simple"? 哦,您是说“内置”还是“简单”? No. 没有。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.