Skip to content

mikeformus/allure-nunit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Allure adapter for NUnit3 framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%