XunitXml.TestLogger
8.1.0
dotnet add package XunitXml.TestLogger --version 8.1.0
NuGet\Install-Package XunitXml.TestLogger -Version 8.1.0
<PackageReference Include="XunitXml.TestLogger" Version="8.1.0" />
<PackageVersion Include="XunitXml.TestLogger" Version="8.1.0" />
<PackageReference Include="XunitXml.TestLogger" />
paket add XunitXml.TestLogger --version 8.1.0
#r "nuget: XunitXml.TestLogger, 8.1.0"
#:package XunitXml.TestLogger@8.1.0
#addin nuget:?package=XunitXml.TestLogger&version=8.1.0
#tool nuget:?package=XunitXml.TestLogger&version=8.1.0
Xunit Test Logger
Xunit logger extensions for MTP v2 and Visual Studio Test Platform. Please use v7.x for MTP v1 runners.
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
Learn more about Target Frameworks and .NET Standard.
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.
|
|
|
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
|
|
|
SonarSource/sonar-dotnet
Code analyzer for C# and VB.NET projects
|
|
|
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)
|
|
|
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
Build and test only the projects your changes actually affect
|
| Version | Downloads | Last Updated |
|---|---|---|
| 8.1.0 | 14,784 | 10/24/2026 |
| 8.0.0 | 1,556,817 | 1/9/2026 |
| 7.1.0 | 419,303 | 12/13/2025 |
| 7.0.2 | 550,968 | 10/8/2025 |
| 7.0.1 | 41,578 | 10/4/2025 |
| 6.1.0 | 2,043,056 | 3/15/2025 |
| 6.0.0 | 285,874 | 2/14/2025 |
| 5.0.0 | 534,871 | 12/19/2024 |
| 4.1.0 | 1,014,703 | 10/12/2024 |
| 4.0.254 | 736,612 | 7/28/2024 |
| 3.1.20 | 2,551,402 | 2/10/2024 |
| 3.1.17 | 1,530,992 | 9/17/2023 |
| 3.1.11 | 648,698 | 7/6/2023 |
| 3.0.78 | 1,421,574 | 1/30/2023 |
| 3.0.70 | 4,824,662 | 11/1/2021 |
| 3.0.66 | 1,548,453 | 3/10/2021 |
| 3.0.62 | 196,795 | 2/3/2021 |
| 3.0.56 | 62,059 | 1/31/2021 |
| 2.1.45 | 175,919 | 1/24/2021 |
| 2.1.26 | 6,573,833 | 12/22/2018 |