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