Allure adapter for NUnit3 framework.
Clone or download
Latest commit 351e31e Sep 10, 2018
Permalink
Failed to load latest commit information.
src Fix for custom json field Sep 10, 2018
.gitattributes Seems about right Nov 3, 2017
.gitignore Seems about right Nov 3, 2017
AllureScreen.png Allure screenshot Nov 4, 2017
LICENSE Update LICENSE Jan 10, 2018
README.md Done ignoredAttribute Jul 20, 2018
appveyor.yml #14 partial fix Sep 7, 2018
logo.png Init Nov 3, 2017

README.md

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