首页 > 技术文章 > 将 xunit.runner.dnx 的 xml 输出转换为 Nunit 格式

Ricky81317 2016-04-12 18:41 原文

由于目前 DNX 缺乏 XSLT 的转换能力,因此只能使用变通方法。具体参考这个链接

主要内容复制过来是:

From @eriklarko on July 14, 2015 7:38

As a workaround we downloaded the NUnitXml.xslt from https://github.com/xunit/xunit/blob/master/src/xunit.console/NUnitXml.xslt and used xsltproc to apply the >tranformation as a build step.

Example:

$ dnx . xunit.runner.dnx -xml xunit-test-results.xml
$ xsltproc NUnitXml.xslt xunit-test-results.xml > nunit-test-results.xml

推荐阅读