Does Allure2 support xunit project? I do not find it in the Allure2 documentation https://docs.qameta.io/allure/2.0/ But is there some adapter to implement it?
Asked
Active
Viewed 2,271 times
1 Answers
6
Allure2 does support xunit project. It does not require special adapter. Allure2 has inbuilt plugin trx-plugin and xunit-xml-plugin. Steps taken for .netcore2 xunit test project using allure-commandline.
Refer to the docs to install allure commandline
Mac OS X brew
brew install allure
Windows scoop
scoop install allure
Linux for debian-based repositories a PPA is provided
sudo apt-add-repository ppa:qameta/allure sudo apt-get update sudo apt-get install allure
TRX report
- Generated output xunit trx report with command:
dotnet test --logger:trx
- Generate Allure report with command:
allure serve /home/path/to/project/target/surefire-reports/
XML Report
Add a reference to the Xunit Logger nuget package in test project.
Generate output xunit xml report with command: dotnet test --logger:xunit
Generated Allure report with command: allure serve /home/path/to/project/target/surefire-reports/

surfmuggle
- 5,527
- 7
- 48
- 77

Megha
- 509
- 5
- 16