- Download NUnit 2.6.3 or 2.6.4 from official site;
- Download latest release from allure-nunit2 releases for corresponding version (version specified in parentheses);
- Unpack binaries to %NUnit_installation_directory%\bin\addins;
- NOTE: addin will NOT be visible in Tools -> Addins.. because it's built against .NET 4.0;
- In %NUnit_installation_directory%\bin\addins\config.xml specify ABSOLUTE path to any folder (this folder will be created automatically) where xml files will be generated (e.g. <results-path>C:\test-results\AllureResults</results-path> or <results-path>/home/user/test-results/AllureResults</results-path>);
- You can also specify in configuration whether you want to take screenshots after failed tests and whether you want to have test output to be written to attachments.
- Run your tests with NUnit GUI or nunit-console using .NET 4.0 (e.g. nunit-console YourAssembly.dll /framework=net-4.0);
- After all tests finish you'll see new folder that you specified on step 5 with generated xml files;
This adapter only generates XML files containing information about tests. See wiki section on how to generate report.
##What about NUnit 3? It's still in alpha-stage, too early to develop an adapter for it. Adapter for NUnit 3 will be located in it's own repository.
- Article about configuring the adapter
- Allure NUnit Wiki