NUnit 到 JUnit for NUnitLite Runner

NUnit to JUnit for NUnitLite Runner

我在控制台应用程序中使用 NUnitLite 运行ner(根据此 example)运行 我在 linux/mac 上的测试。 我需要将结果转换为 JUnit 格式。我还没有找到任何 flag/option 如何仅通过使用 NUnitLite 运行ner 来进行转换。

另一种方法是在测试后转换结果 运行。我找到了 xslt 转换 here,但我不确定如何在 linux/mac 上使用它(在这种情况下我不想使用单声道)。

我是否遗漏了 NUniteLite 运行ner 中的某些内容,或者是否有一种简单的方法可以在 linux/mac 上使用 运行 xslt 转换?

非常感谢

好的,它不是通用的,但对我有用 linux(Ubuntu)/mac:

xsltproc -o PATH_TO/JUNIT_FILE.xml PATH_TO/nunit3-junit.xslt PATH_TO/TestResult.xml

其中“nunit3-junit.xslt”来自 nunit / nunit-transforms 有关 xsltproc 的更多信息,请参阅 here