mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-01 02:45:22 -08:00
Clarify the dotnet-nunit docs to require NUnit3TestAdapter for nunit logger
This commit is contained in:
@@ -260,13 +260,11 @@ For more information see [dotnet test](https://docs.microsoft.com/en-us/dotnet/c
|
|||||||
<details>
|
<details>
|
||||||
<summary>dotnet-nunit</summary>
|
<summary>dotnet-nunit</summary>
|
||||||
|
|
||||||
Test execution must be configured to produce [NUnit3](https://docs.nunit.org/articles/nunit/technical-notes/usage/Test-Result-XML-Format.html) XML test results.
|
Test execution must be configured to generate [NUnit3](https://docs.nunit.org/articles/nunit/technical-notes/usage/Test-Result-XML-Format.html) XML test results.
|
||||||
To get test results in NUnit3 format you can execute your tests with CLI arguments:
|
Install the [NUnit3TestAdapter](https://www.nuget.org/packages/NUnit3TestAdapter) package (required; it registers the `nunit` logger for `dotnet test`), then run tests with:
|
||||||
|
|
||||||
`dotnet test --logger "nunit;LogFileName=test-results.xml"`
|
`dotnet test --logger "nunit;LogFileName=test-results.xml"`
|
||||||
|
|
||||||
Or you can configure NUnit output in your test project by adding the [NUnit3TestAdapter](https://www.nuget.org/packages/NUnit3TestAdapter) package.
|
|
||||||
|
|
||||||
Supported testing frameworks:
|
Supported testing frameworks:
|
||||||
- [NUnit](https://nunit.org/)
|
- [NUnit](https://nunit.org/)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user