Add custom allure test attributes for Xunit in .Net
See original GitHub issueIs your feature request related to a problem? Please describe. When viewing the docs, it appears there are options in NUnit that do not exist with Xunit for .NET. Specifically the NUnit.Allure package allows for lots of attributes on the tests so you customize your reports quite a bit. Things like
[AllureTag("Regression")]
[AllureSeverity(SeverityLevel.critical)]
[AllureIssue("ISSUE-1")]
[AllureTms("TMS-12")]
[AllureOwner("User")]
[AllureSuite("PassedSuite")]
[AllureSubSuite("NoAssert")]
Describe the solution you’d like I’d like the ability to integrate more custom information from my tests into the Allure report using attributes like this but in Xunit. Is this possible?
Describe alternatives you’ve considered I’ve searched high and low across the internet but haven’t found anything for Xunit with Allure that will do this yet. I’m really hoping Im missing something easy. There are not alot of alternatives for cross platform linux based html report generation tools for .NET out there. And I like Allure. The reports are pretty nice.
Additional context We are really looking for ways to inject more information in the report about the features that are being tested. Possibly adding links to the agile stories and featues themselves so testers can follow what the automated tests are doing more easily.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
Hi @dnbr2002 , when you generate a report in XML format from the above class, do you get all this info visible in Allure? I have similar situation in my project, we are using Xunit as the main test framework and to use allure attributes I combined with NUnit, but it seems to be not reflected in my test report.
fixed in https://github.com/allure-framework/allure-csharp