XunitXml.TestLogger
                             
                            
                                7.0.1
                            
                        
                    See the version list below for details.
dotnet add package XunitXml.TestLogger --version 7.0.1
NuGet\Install-Package XunitXml.TestLogger -Version 7.0.1
<PackageReference Include="XunitXml.TestLogger" Version="7.0.1" />
<PackageVersion Include="XunitXml.TestLogger" Version="7.0.1" />
<PackageReference Include="XunitXml.TestLogger" />
paket add XunitXml.TestLogger --version 7.0.1
#r "nuget: XunitXml.TestLogger, 7.0.1"
#:package XunitXml.TestLogger@7.0.1
#addin nuget:?package=XunitXml.TestLogger&version=7.0.1
#tool nuget:?package=XunitXml.TestLogger&version=7.0.1
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
| 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
                                                         | |
| microsoft/Oryx 
                                                            Build your repo automatically.
                                                         | |
| empira/PDFsharp 
                                                            PDFsharp and MigraDoc Foundation for .NET 6 and .NET Framework
                                                         | |
| Baseflow/XamarinMediaManager 
                                                            Cross platform Xamarin plugin to play and control Audio and Video
                                                         | |
| dotnet/dotnet 
                                                            Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK.
                                                         | |
| 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.0.2 | 32,885 | 10/8/2025 | 
| 7.0.1 | 12,150 | 10/4/2025 | 
| 6.1.0 | 915,720 | 3/15/2025 | 
| 6.0.0 | 167,812 | 2/14/2025 | 
| 5.0.0 | 349,977 | 12/19/2024 | 
| 4.1.0 | 666,765 | 10/12/2024 | 
| 4.0.254 | 507,222 | 7/28/2024 | 
| 3.1.20 | 1,829,760 | 2/10/2024 | 
| 3.1.17 | 1,259,174 | 9/17/2023 | 
| 3.1.11 | 576,588 | 7/6/2023 | 
| 3.0.78 | 1,251,328 | 1/30/2023 | 
| 3.0.70 | 4,230,655 | 11/1/2021 | 
| 3.0.66 | 1,446,149 | 3/10/2021 | 
| 3.0.62 | 182,849 | 2/3/2021 | 
| 3.0.56 | 42,174 | 1/31/2021 | 
| 2.1.45 | 154,297 | 1/24/2021 | 
| 2.1.26 | 6,144,381 | 12/22/2018 | 
| 2.0.0 | 1,956,351 | 9/26/2017 | 
| 1.1.0-post-rtm | 44,282 | 6/21/2017 | 
| 1.0.3-pre-rtm | 7,932 | 6/21/2017 | 
| 1.0.2-pre-rtm | 72,789 | 3/20/2017 |