我有一些单元测试,并得到了一些代码覆盖率数据。现在,我希望能够看到的Visual Studio之外的代码覆盖率数据,说在网络浏览器。但是,当我的代码覆盖率导出到一个XML文件,我不能做任何事情。有没有读者了那里呢?我必须写一个XML解析器,然后显示它,我怎么想它(似乎是因为视觉工作室已经这样做是浪费。),似乎有点傻不得不考虑我的代码覆盖率结果截图为我的报告连连呢?
I've got some unit tests, and got some code coverage data. Now, I'd like to be able to view that code coverage data outside of visual studio, say in a web browser. But, when I export the code coverage to an xml file, I can't do anything with it. Are there readers out there for this? Do I have to write an xml parser and then display it how I want it (seems like a waste since visual studio already does this.) Seems kinda silly to have to take a screenshot of my code coverage results as my "report" Suggestions?
推荐答案此工具的 github/danielpalme/ReportGenerator 快速生成HTML代码覆盖率文件报告。工作得很好,并且不需要复杂的活动,可以很容易地包括在构建过程
This tool github/danielpalme/ReportGenerator quickly generate Html reports from coverage file. Works quite well and does not require complex activities, can be easily included in the build process.
更多推荐
查看的Visual Studio之外的代码覆盖率结果
发布评论