This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Installation and usage
Nick edited this page Jul 23, 2018
·
3 revisions
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.
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.
Create allureConfig.json and configure it using Allure.Commons manual. Make sure allureConfig is copied to build output directory.
Add [AllureNUnit] attribute to test fixture to have allure reports:
[AllureNUnit]
class TestFixture
{
[OneTimeSetUp]
public void OneTimeSetup()
{
AllureLifecycle.Instance.CleanupResultDirectory();
}
}
- .NET 4.5
- .NET Standard 2.0