我看到了NUnit 2.x版本的几种解决方案。例如,我可以创建XSLT,或使用Allure Reporter。
但是我如何才能为 NUnit 3.x 版本(没有为NUnit XML结果编写自己的XSLT)?
Allure不适用于NUnit3。
答案 0 :(得分:5)
我建议使用GHPReporter。 您可以为NUnit 3,SpecFlow和MSTest创建报告。
NUnit 3不需要其他属性。只需设置插件(参见README文件中的简短说明:https://github.com/GHPReporter/Ghpr.NUnit)并使用NUnit3控制台运行测试。
在Firefox中本地查看您的报告:
about:config
security.fileuri.strict_origin_policy
参数false
在Chrome中本地查看您的报告:
--allow-file-access-from-files
选项启动它:
例如C:\PATH TO\chrome.exe --allow-file-access-from-files
另见演示报告here
<强> EDITED 强>
NUnitGo已不再维护。