NUnit.Allure 1.0.11

NUnit attributes extenstions for Allure

Install-Package NUnit.Allure -Version 1.0.11
dotnet add package NUnit.Allure --version 1.0.11
<PackageReference Include="NUnit.Allure" Version="1.0.11" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NUnit.Allure --version 1.0.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Allure NUnit adapter

NUnit adapter for Allure Framework

Build statusNuGetSteps

Allure report:

Allure report

Code example:

[TestFixture(Author = "unickq", Description = "Examples")]
[AllureNUnit]
[AllureLink("https://github.com/unickq/allure-nunit")]
public class Tests
{
    [OneTimeSetUp]
    public void ClearResultsDir()
    {
        AllureLifecycle.Instance.CleanupResultDirectory();
    }

    //Allure.Steps required
    [AllureStep("This method is just saying hello")]
    private void SayHello()
    {
        Console.WriteLine("Hello!");
    }

    [Test]
    [AllureTag("NUnit", "Debug")]
    [AllureIssue("GitHub#1", "https://github.com/unickq/allure-nunit")]
    [AllureSeverity(SeverityLevel.critical)]
    [AllureFeature("Core")]
    public void EvenTest([Range(0, 5)] int value)
    {
        SayHello();
            
        //Wrapping Step
        AllureLifecycle.Instance.WrapInStep(
            () => { Assert.IsTrue(value % 2 == 0, $"Oh no :( {value} % 2 = {value % 2}"); },
            "Validate calculations");
    }
}

ToDo:

  • [x] NET Standard 2.0 (NET 4.5 without steps)
  • [x] Parallelizable test support
  • [x] Attachments
  • [x] Allure SetUp/TearDown support
  • [x] Console Output as attached file
  • [x] Add ignored (not started) tests to results. Assert.Ignore() works :) [AllureDisplayIgnored]
  • [x] Steps attribute for non-test methods

Installation and Usage

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

Allure NUnit adapter

NUnit adapter for Allure Framework

Build statusNuGetSteps

Allure report:

Allure report

Code example:

[TestFixture(Author = "unickq", Description = "Examples")]
[AllureNUnit]
[AllureLink("https://github.com/unickq/allure-nunit")]
public class Tests
{
    [OneTimeSetUp]
    public void ClearResultsDir()
    {
        AllureLifecycle.Instance.CleanupResultDirectory();
    }

    //Allure.Steps required
    [AllureStep("This method is just saying hello")]
    private void SayHello()
    {
        Console.WriteLine("Hello!");
    }

    [Test]
    [AllureTag("NUnit", "Debug")]
    [AllureIssue("GitHub#1", "https://github.com/unickq/allure-nunit")]
    [AllureSeverity(SeverityLevel.critical)]
    [AllureFeature("Core")]
    public void EvenTest([Range(0, 5)] int value)
    {
        SayHello();
            
        //Wrapping Step
        AllureLifecycle.Instance.WrapInStep(
            () => { Assert.IsTrue(value % 2 == 0, $"Oh no :( {value} % 2 = {value % 2}"); },
            "Validate calculations");
    }
}

ToDo:

  • [x] NET Standard 2.0 (NET 4.5 without steps)
  • [x] Parallelizable test support
  • [x] Attachments
  • [x] Allure SetUp/TearDown support
  • [x] Console Output as attached file
  • [x] Add ignored (not started) tests to results. Assert.Ignore() works :) [AllureDisplayIgnored]
  • [x] Steps attribute for non-test methods

Installation and Usage

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

Release Notes

Fixed NUnit version

NuGet packages (1)

Showing the top 1 NuGet packages that depend on NUnit.Allure:

Package Downloads
NUnit.Allure.Steps
Steps Attribute for NUnit.Allure

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on NUnit.Allure:

Repository Stars
AutomateThePlanet/AutomateThePlanet-Learning-Series
Automate The Planet Series Source Code

Version History

Version Downloads Last updated
1.0.11 2,697 8/31/2020
1.0.9 19,229 3/24/2020
1.0.6.2 21,834 12/26/2019
1.0.6.1 2,559 11/19/2019
1.0.6 42,578 5/20/2019
1.0.6-beta30 405 2/2/2019
1.0.5 22,340 11/21/2018
1.0.4 2,381 9/20/2018
1.0.4-beta24 237 9/10/2018
1.0.4-beta23 233 9/7/2018
1.0.3 877 8/31/2018
1.0.2 13,427 8/16/2018
1.0.0 1,487 7/23/2018
1.0.0-alfa6 292 7/20/2018
0.2.3 690 6/1/2018
0.2.2 443 5/24/2018
0.2.1 878 11/22/2017
0.2.0 365 11/15/2017
0.1.1 378 11/4/2017
0.1.0 452 11/3/2017