Skip to content

vmaxim/allure-nunit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Allure NUnit adapter

NUnit3 adapter for Allure Framework

Build status

Installation and Usage

  • Set target framework .NET 4.6.1 and higher (because of allure-csharp)
  • Download from Nuget with all dependencies
  • Use Allure attributes for Tests and TestFixtures

NuGet

Code example:

[TestFixture]
[AllureFixture("Description for allure container")]
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}" );
    }
}

Allure report:

Allure report

About

Allure adapter for NUnit3 framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%