Meg*_*gha 3 report xunit.net allure asp.net-core-2.0
Allure2支持xunit项目吗?我在 Allure2 文档中没有找到它https://docs.qameta.io/allure/2.0/但是是否有一些适配器来实现它?
Allure2确实支持xunit项目。它不需要特殊的适配器。Allure2 有内置插件trx-plugin 和 xunit-xml-plugin。使用 allure-commandline 对 .netcore2 xunit 测试项目采取的步骤。
参考文档安装 allure 命令行
Mac OS X酿造
brew install allure窗户勺
scoop install allureLinux 为基于 debian 的存储库提供了 PPA
Run Code Online (Sandbox Code Playgroud)sudo apt-add-repository ppa:qameta/allure sudo apt-get update sudo apt-get install allure
dotnet test --logger:trxallure serve /home/path/to/project/target/surefire-reports/在测试项目中添加对Xunit Logger nuget 包的引用。
使用命令生成输出 xunit xml 报告:dotnet test --logger:xunit
使用命令生成 Allure 报告: allureserve /home/path/to/project/target/surefire-reports/
| 归档时间: |
|
| 查看次数: |
2369 次 |
| 最近记录: |