【发布时间】:2017-12-14 14:04:14
【问题描述】:
Allure2 是否支持 xunit 项目?我在 Allure2 文档 https://docs.qameta.io/allure/2.0/ 中没有找到它,但是有一些适配器可以实现它吗?
【问题讨论】:
标签: report asp.net-core-2.0 xunit.net allure
Allure2 是否支持 xunit 项目?我在 Allure2 文档 https://docs.qameta.io/allure/2.0/ 中没有找到它,但是有一些适配器可以实现它吗?
【问题讨论】:
标签: report asp.net-core-2.0 xunit.net allure
Allure2 确实支持 xunit 项目。它不需要特殊的适配器。 Allure2 有内置插件trx-plugin and xunit-xml-plugin。 使用 allure-commandline 为 .netcore2 xunit 测试项目采取的步骤。 (参考文档安装 allure 命令行 - docs.qameta.io/allure/latest/#_installing_a_commandline)
TRX 报告:
XML 报告:
在测试项目中添加对Xunit Logger nuget 包的引用。
使用命令生成输出 xunit xml 报告:dotnet test --logger:xunit
使用命令生成 Allure 报告:allure serve /home/path/to/project/target/surefire-reports/
【讨论】: