Free tools

NUnit XML Viewer: Read TestResult.xml Online

Read the TestResult.xml that the NUnit console or adapter writes: failures with stack traces, ignored tests and slow fixtures.

Runs in your browserNothing is uploadedNo sign-up

Paste the file, or choose or drop one or more files. Reads JUnit XML, TRX (Visual Studio / dotnet test), NUnit 3 XML, Playwright JSON, CTRF JSON.

Or drop files on the box. Nothing is uploaded.

How to get NUnit XML

The NUnit console runner saves its results to TestResult.xml in the NUnit 3 format when you don't give it a --result option. To choose the file or ask for the older format:

nunit3-console MyTests.dll --result=results.xml
nunit3-console MyTests.dll "--result=results-v2.xml;format=nunit2"

The --result option can be repeated to write both formats in one run; quote it in a shell, since ; ends a command. Tests run through dotnet test and the NUnit adapter report through VSTest loggers instead, such as --logger trx; open those files in the TRX viewer.

What the viewer reads

In NUnit 3 XML, <test-run> holds nested <test-suite> elements (assembly, namespace, fixture) and the <test-case> elements inside them. Each test case has a result and, when the result alone isn't enough, a label:

resultlabelShown as
PassedPassed
Failed(none)Failed: an assertion failed
FailedError, Cancelled or InvalidError: an exception, a cancelled run or an invalid test
SkippedIgnored or ExplicitSkipped, with the reason from <reason><message>
InconclusiveSkipped

The duration attribute is in seconds. The failure message and stack trace come from <failure><message> and <failure><stack-trace>, and the suite is the test case's classname, so parameterized cases such as AppliesCoupon(10) and AppliesCoupon(20) sit under one fixture.

NUnit 2 files (<test-results>, results such as Success and Failure, a time attribute) are read too, for older pipelines.

Sources

Testland for teams

In development

Automated test reports, manual test runs and regression tracking in one workspace. A separate product, built on the same skills.

One email when it opens, nothing else. Privacy policy