Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Installation and usage

Nick edited this page Jul 23, 2018 · 3 revisions

Installation

Using NuGet Packages

In Visual Studio, from the Tools menu, select NuGet Package Manager | Manage NuGet packages for a solution... Open the Browser tab, and Scroll or use search to locate the NUnit.Allure packages.

NuGet

Downloading binary File

Dowload binaries from releases.

In your test assemblies, add a reference to NUnit.Allure.dll and its referernces (Allure.Commons.dll, nunit.framework.dll, Newtonsoft.Json.dll, MimeTypesMap.dll) using the copy in the subdirectory for the appropriate runtime version.

Usage

Allure configuration

Create allureConfig.json and configure it using Allure.Commons manual. Make sure allureConfig is copied to build output directory.

Allure NUnit usage

Add [AllureNUnit] attribute to test fixture to have allure reports:

[AllureNUnit]
class TestFixture
{
    [OneTimeSetUp]
    public void OneTimeSetup()
    {
        AllureLifecycle.Instance.CleanupResultDirectory();
    }
}

Platforms supported:

  • .NET 4.5
  • .NET Standard 2.0