XunitXml.TestLogger 7.0.2
Xunit Test Logger
Xunit logger extensions for Visual Studio Test Platform.
Packages
| Logger | Stable Package | Pre-release Package |
|---|---|---|
| Xunit |
If you're looking for nunit or junit, please see https://github.com/spekt/testlogger.
Usage
Xunit logger can generate xml reports in the xunit v2 format (https://xunit.net/docs/format-xml-v2).
- Add a reference to the Xunit Logger nuget package in test project
- Use the following command line in tests
> dotnet test --logger:xunit
- Test results are generated in the
TestResultsdirectory relative to thetest.csproj
A path for the report file can be specified as follows:
> dotnet test --logger:"xunit;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.
Microsoft.Testing.Platform (MTP) Support
The logger also supports Microsoft.Testing.Platform (MTP) with the following command line options:
> dotnet test -- --report-spekt-xunit --report-spekt-xunit-filename test_result.xml
The --report-spekt-xunit option can also accept configuration arguments:
> dotnet test -- --report-spekt-xunit "key1=value1;key2=value2"
Configuration
All common options to the logger is documented in the wiki.
License
MIT
Showing the top 20 packages that depend on XunitXml.TestLogger.
| Packages | Downloads |
|---|---|
|
AgileLabs.Testing.Web
Package Description
|
28 |
| Version | Downloads | Last updated |
|---|---|---|
| 7.0.2 | 18 | 10/12/2025 |
| 7.0.1 | 15 | 10/05/2025 |
| 6.1.0 | 19 | 04/01/2025 |
| 6.0.0 | 23 | 04/01/2025 |
| 5.0.0 | 22 | 01/30/2025 |
| 4.1.0 | 15 | 01/30/2025 |
| 4.0.254 | 25 | 01/30/2025 |
| 3.1.20 | 17 | 01/30/2025 |
| 3.1.17 | 19 | 12/23/2024 |
| 3.1.11 | 16 | 01/30/2025 |
| 3.0.78 | 18 | 01/30/2025 |
| 3.0.70 | 27 | 01/30/2025 |
| 3.0.66 | 20 | 01/30/2025 |
| 3.0.62 | 14 | 01/30/2025 |
| 3.0.56 | 23 | 01/30/2025 |
| 2.1.45 | 20 | 01/30/2025 |
| 2.1.26 | 15 | 01/30/2025 |
| 2.0.0 | 23 | 01/30/2025 |
| 1.1.0-post-rtm | 20 | 01/30/2025 |
| 1.0.3-pre-rtm | 20 | 01/30/2025 |
| 1.0.2-pre-rtm | 23 | 01/30/2025 |