Tom Jones
Tom Jones

Reputation: 71

Are there any ways to create HTML report for NUnit3?

I saw several solutions for NUnit 2.x version. For example, I can create XSLT, or use Allure Reporter.

But how can I do it for NUnit 3.x version (without writing my own XSLT for NUnit XML results)?

Allure does not work with NUnit3.

Upvotes: 6

Views: 7778

Answers (1)

Evgenii Kosiakov
Evgenii Kosiakov

Reputation: 605

I would suggest using GHPReporter. You can create reports for NUnit 3, SpecFlow and MSTest.

No additional attributes required for NUnit 3. Just set up addin (see short instruction in README file: https://github.com/GHPReporter/Ghpr.NUnit) and run your tests with NUnit3 Console.

View your report locally in Firefox:

  • Go to about:config
  • Find security.fileuri.strict_origin_policy parameter
  • Set it to false

View your report locally in Chrome:

  • Close your Chrome (all instances)
  • Launch it with --allow-file-access-from-files option: eg C:\PATH TO\chrome.exe --allow-file-access-from-files

Also see demo report here

EDITED

NUnitGo is no longer maintained.

Upvotes: 6

Related Questions