Nover 是否为我的 XSL 输出正确的 XML 版本?
我使用以下命令生成一个coverage.xml 输出文件。
"C:\Program Files\NCover\NCover.Console.exe" //reg //w "D:\BuildServer\MyCoolWebsite\Working\MyCoolWebsite.Helpers.Tests\bin\Debug" //l "Coverage.log" //a MyCoolWebsite.Helpers //x "D:\BuildServer\MyCoolWebsite\Artifacts\buildlogs\coverage.xml" "C:\Program Files\NUnit 2.4.8\bin\nunit-console.exe" "D:\BuildServer\MyCoolWebsite\Working\MyCoolWebsite.Helpers.Tests\MyCoolWebsite.Helpers.Tests.nunit"
然后我尝试使用 C:\Program Files\NCover\CC.Net 文件夹中的 xsls 解析 xml。 结果是一个几乎空的 html 文件。
其原因是 xsl 需要以下内容:
coverage -> module -> method -> seqpnt -> @visitcount
虽然 xml 的结构如下所示
coverage -> module -> class -> method -> seqpnt -> @vc
NCover 是否为我的 XSL 输出正确的 XML 版本? 有我缺少的设置吗?
I generate a coverage.xml output file with the following command.
"C:\Program Files\NCover\NCover.Console.exe" //reg //w "D:\BuildServer\MyCoolWebsite\Working\MyCoolWebsite.Helpers.Tests\bin\Debug" //l "Coverage.log" //a MyCoolWebsite.Helpers //x "D:\BuildServer\MyCoolWebsite\Artifacts\buildlogs\coverage.xml" "C:\Program Files\NUnit 2.4.8\bin\nunit-console.exe" "D:\BuildServer\MyCoolWebsite\Working\MyCoolWebsite.Helpers.Tests\MyCoolWebsite.Helpers.Tests.nunit"
Then I try to parse the xml using the xsls from the C:\Program Files\NCover\CC.Net folder. The result is an almost empty html file.
The reason for this is that the xsl expects the following:
coverage -> module -> method -> seqpnt -> @visitcount
While the xml has a structure that looks like this
coverage -> module -> class -> method -> seqpnt -> @vc
Does NCover output the correct XML version for my XSL? Is there a setting I am missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能没有错过任何设置。 xsl 看起来像是用于 NCover v1.5.8 及更早版本,而 xml 可能来自 v2.1 或更高版本。 我知道 NCover 的早期版本中存在一些混淆,但如果您使用 2.1.2 或更高版本,xsl 应该匹配。 最快的补救措施就是下载最新版本的 NCover 并从中获取 xsl。
You're probably not missing a setting. The xsl looks like it's for NCover v1.5.8 and earlier, while the xml is probably from v2.1 or later. I know there were some mixups in the earlier releases of NCover, but if you're using 2.1.2 or later the xsl should match. The fastest remedy is just to download the most recent version of NCover and get the xsl from that.