查看的Visual Studio之外的代码覆盖率结果

编程入门 行业动态 更新时间:2024-10-28 15:19:18
本文介绍了查看的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?

推荐答案

此工具的 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之外的代码覆盖率结果

本文发布于:2023-11-14 10:45:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1587009.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:覆盖率   代码   Visual   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!