question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add custom allure test attributes for Xunit in .Net

See original GitHub issue

Is 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:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
wmiklasewiczcommented, May 7, 2020

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.

0reactions
baevcommented, Nov 3, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Add custom allure test attributes for Xunit in .Net -
I'd like the ability to integrate more custom information from my tests into the Allure report using attributes like this but in Xunit....
Read more >
Test Automation Reporting with Allure in .NET Projects
Add [AllureNUnit] attribute to test classes where you want to use Allure. Add more attributes to tune the display in the report like...
Read more >
Comparing xUnit.net to other frameworks
xUnit.net does not require an attribute for a test class; it looks for all test methods in all public (exported) classes in the...
Read more >
Allure Framework
Allure Framework is a flexible lightweight multi-language test report ... to create custom defects classification to apply for test results.
Read more >
How to generate Allure2 report for Xunit.net project
1 Answer 1 · Add a reference to the Xunit Logger nuget package in test project. · Generate output xunit xml report with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found