Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (19 loc) · 1.86 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.86 KB

[DEPRECATED]

Allure NUnit 2 Adapter

Installation and Usage

  1. Download NUnit 2.6.3 or 2.6.4 from official site;
  2. Download latest release from allure-nunit2 releases for corresponding version (version specified in parentheses);
  3. Unpack binaries to %NUnit_installation_directory%\bin\addins;
  4. NOTE: addin will NOT be visible in Tools -> Addins.. because it's built against .NET 4.0;
  5. 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>);
  6. 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.
  7. Run your tests with NUnit GUI or nunit-console using .NET 4.0 (e.g. nunit-console YourAssembly.dll /framework=net-4.0);
  8. After all tests finish you'll see new folder that you specified on step 5 with generated xml files;

How to generate report

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.

Further reading