XunitXml.TestLogger
7.1.0
dotnet add package XunitXml.TestLogger --version 7.1.0
NuGet\Install-Package XunitXml.TestLogger -Version 7.1.0
<PackageReference Include="XunitXml.TestLogger" Version="7.1.0" />
<PackageVersion Include="XunitXml.TestLogger" Version="7.1.0" />
<PackageReference Include="XunitXml.TestLogger" />
paket add XunitXml.TestLogger --version 7.1.0
#r "nuget: XunitXml.TestLogger, 7.1.0"
#:package XunitXml.TestLogger@7.1.0
#addin nuget:?package=XunitXml.TestLogger&version=7.1.0
#tool nuget:?package=XunitXml.TestLogger&version=7.1.0
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
Available options
| Option name | Purpose | Documentation |
|---|---|---|
| LogFileName* | Customize test result file name with {assembly} or {framework} tokens |
See config-wiki |
| LogFilePath* | Test result file full path | See config-wiki |
| UseRelativeAttachmentPath* | Use attachment paths relative to test result file. Boolean. Default: false | See config-wiki |
*All common options to the logger is documented in the wiki.
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
This package has no dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on XunitXml.TestLogger:
| Package | Downloads |
|---|---|
|
M5x.Testing
Macula Base Testing Library |
|
|
Xunit.Logging
A logger for xUnit output for lazy people (like me) |
|
|
Mi.Fx.Testing
Abstraction Layer for macula.io xunit testing. |
GitHub repositories (26)
Showing the top 20 popular GitHub repositories that depend on XunitXml.TestLogger:
| Repository | Stars |
|---|---|
|
PowerShell/PowerShell
PowerShell for every system!
|
|
|
dotnet/aspnetcore
ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
|
|
|
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
|
|
|
bchavez/Bogus
:card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
|
|
|
mono/SkiaSharp
SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
|
|
|
PowerShell/PSReadLine
A bash inspired readline implementation for PowerShell
|
|
|
MvvmCross/MvvmCross
The .NET MVVM framework for cross-platform solutions, including Android, iOS, MacCatalyst, macOS, tvOS, WPF, WinUI
|
|
|
FakeItEasy/FakeItEasy
The easy mocking library for .NET
|
|
|
Cysharp/Ulid
Fast .NET C# Implementation of ULID for .NET and Unity.
|
|
|
microsoft/botbuilder-dotnet
Welcome to the Bot Framework SDK for .NET repository, which is the home for the libraries and packages that enable developers to build sophisticated bot applications using .NET.
|
|
|
aspnet/AspNetWebStack
ASP.NET MVC 5.x, Web API 2.x, and Web Pages 3.x (not ASP.NET Core)
|
|
|
SonarSource/sonar-dotnet
Code analyzer for C# and VB.NET projects
|
|
|
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK.
|
|
|
empira/PDFsharp
PDFsharp and MigraDoc Foundation for .NET 6 and .NET Framework
|
|
|
microsoft/Oryx
Build your repo automatically.
|
|
|
Baseflow/XamarinMediaManager
Cross platform Xamarin plugin to play and control Audio and Video
|
|
|
datastax/csharp-driver
DataStax C# Driver for Apache Cassandra
|
|
|
microsoft/CsWinRT
C# language projection for the Windows Runtime
|
|
|
charlessolar/Aggregates.NET
.NET event sourced domain driven design model via NServiceBus and GetEventStore
|
|
|
leonardochaia/dotnet-affected
.NET tool for determining which projects are affected by a set of changes. Useful for large projects or monorepos.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 7.1.0 | 19,533 | 12/13/2025 |
| 7.0.2 | 191,485 | 10/8/2025 |
| 7.0.1 | 19,159 | 10/4/2025 |
| 6.1.0 | 1,180,324 | 3/15/2025 |
| 6.0.0 | 187,876 | 2/14/2025 |
| 5.0.0 | 391,638 | 12/19/2024 |
| 4.1.0 | 736,473 | 10/12/2024 |
| 4.0.254 | 542,510 | 7/28/2024 |
| 3.1.20 | 1,951,302 | 2/10/2024 |
| 3.1.17 | 1,300,274 | 9/17/2023 |
| 3.1.11 | 586,814 | 7/6/2023 |
| 3.0.78 | 1,278,945 | 1/30/2023 |
| 3.0.70 | 4,322,082 | 11/1/2021 |
| 3.0.66 | 1,462,368 | 3/10/2021 |
| 3.0.62 | 184,708 | 2/3/2021 |
| 3.0.56 | 48,238 | 1/31/2021 |
| 2.1.45 | 156,326 | 1/24/2021 |
| 2.1.26 | 6,209,227 | 12/22/2018 |
| 2.0.0 | 1,964,933 | 9/26/2017 |
| 1.1.0-post-rtm | 44,347 | 6/21/2017 |
| 1.0.3-pre-rtm | 7,995 | 6/21/2017 |
| 1.0.2-pre-rtm | 72,853 | 3/20/2017 |