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

问题描述

限时删除!!

我有一些单元测试,并得到了一些代码覆盖率数据。现在,我希望能够看到的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?

推荐答案

此工具的快速生成HTML代码覆盖率文件报告。工作得很好,并且不需要复杂的活动,可以很容易地包括在构建过程

This tool https://github.com/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之外的代码覆盖率结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 06:26