/allure-nunit

Allure adapter for NUnit3 framework.

Primary LanguageC#MIT LicenseMIT

Allure NUnit adapter

NUnit3 adapter for Allure Framework

Build statusNuGet

Allure report:

Allure report

Code example:

[TestFixture]
[AllureNUnit]
public class Tests
{
    [Test]
    [AllureTest("I'm a test")]
    [AllureTag("NUnit","Debug")]
    [AllureIssue("GitHub#1", "https://github.com/unickq/allure-nunit")]
    [AllureSeverity(AllureSeverity.Critical)]
    [AllureFeature("Core")]
    public void EvenTest([Range(0, 5)] int value)
    {
        Assert.IsTrue(value % 2 == 0, $"Oh no :( {value} % 2 = {value % 2}" );
    }
}

ToDo:

  • NET 4.5, NET Standard 2.0 support
  • Steps Wrapping - with custom method
  • Allure SetUp/TearDown support
  • Attachments
  • Parallelizable(ParallelScope.Fixtures)
  • Parallelizable(ParallelScope.Children)
  • Add ignored (not started) tests to results. Assert.Ignore() works :) [AllureDisplayIgnored]

Installation and Usage

  • Download from Nuget with all dependencies
  • Configure allureConfig.json
  • Set AllureNUnit attribute under test fixture
  • Use other attributes if needed

NuGet