NUnit logger for vstest platform
NUnit xml report extension for Visual Studio Test Platform.
Logger | Stable Package | Pre-release Package |
---|---|---|
NUnit |
If you're looking for xunit
, junit
or appveyor
loggers, visit following repositories:
NUnit logger can generate xml reports in the NUnit v3 format.
> dotnet test --logger:nunit
TestResults
directory relative to the test.csproj
A path for the report file can be specified as follows:
> dotnet test --logger:"nunit;LogFilePath=test-result.xml"
test-result.xml
will be generated in the same directory as test.csproj
.
Note: the arguments to --logger
should be in quotes since ;
is treated as a command delimiter in shell.
All common options to the logger is documented in the wiki. E.g.
token expansion for {assembly}
or {framework}
in result file.
NUnit test framework settings
Description
in the xml, please enable internal properties for the nunit adapter:dotnet test --logger:nunit -- NUnit.ShowInternalProperties=true
dotnet test --logger:nunit -- NUnit.TestOutputXml=<foldername relative to test binary directory>
A note to self on how to make releases:
> dotnet new nunit
> dotnet add package NunitXml.TestLogger --version 3.0.109 --source https://www.myget.org/F/spekt/api/v3/index.json
> dotnet test --logger:nunit
MIT