Reporting extensions for Visual Studio Test Platform.
Logger | Nuget Package |
---|---|
AppVeyor | |
Xunit |
The appveyor logger can report test results automatically to the CI build. See an example: https://ci.appveyor.com/project/Faizan2304/loggerextensions/build/1.0.24/tests.
- Add a reference to the AppVeyor Logger nuget package in test project
- Use the following command line in tests
> dotnet test --test-adapter-path:. --logger:Appveyor
- Test results are automatically reported to the AppVeyor CI results
Xunit logger can generate xml reports in the xunit v2 format (https://xunit.github.io/docs/format-xml-v2.html).
- Add a reference to the Xunit Logger nuget package in test project
- Use the following command line in tests
> dotnet test --test-adapter-path:. --logger:xunit
- Test results are generated in the
TestResults
directory relative to thetest.csproj
A path for the report file can be specified as follows:
> dotnet test --test-adapter-path:. --logger:xunit;LogFilePath=loggerFile.xml
loggerFile.xml
will be generated in the same directory as test.csproj
.
MIT