Babelserver.DotNet.TestAdapter.xUnit 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Babelserver.DotNet.TestAdapter.xUnit --version 1.0.2
                    
NuGet\Install-Package Babelserver.DotNet.TestAdapter.xUnit -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Babelserver.DotNet.TestAdapter.xUnit" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Babelserver.DotNet.TestAdapter.xUnit" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Babelserver.DotNet.TestAdapter.xUnit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Babelserver.DotNet.TestAdapter.xUnit --version 1.0.2
                    
#r "nuget: Babelserver.DotNet.TestAdapter.xUnit, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Babelserver.DotNet.TestAdapter.xUnit@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Babelserver.DotNet.TestAdapter.xUnit&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Babelserver.DotNet.TestAdapter.xUnit&version=1.0.2
                    
Install as a Cake Tool

.NET Test Logger

A test logger for dotnet test that provides test output with status indicators for each individual test, inspired by Maven's Surefire output and matching the Gradle Test Logger Plugin.

Features

  • Shows pass/fail/skip status for each individual test
  • Displays a summary with test counts
  • Skip reasons displayed when available
  • Error messages and stack traces for failed tests

Sample Output

────────────────────────────────────────────────────────────
 T E S T S
────────────────────────────────────────────────────────────
Running MyProject.Tests.UserServiceTests
  ✅ CreateUser_WithValidData_ReturnsUser (42ms)
  ✅ CreateUser_WithInvalidEmail_ThrowsException (8ms)
  ❌ DeleteUser_WhenNotFound_ThrowsException (3ms)
    Error: Expected exception but none was thrown
  ⏭️  UpdateUser_Integration (Requires database connection)
Running MyProject.Tests.OrderServiceTests
  ✅ PlaceOrder_WithStock_Succeeds (21ms)
────────────────────────────────────────────────────────────
❌ Tests: 5, Passed: 3, Failed: 1, Skipped: 1
────────────────────────────────────────────────────────────

On older Windows terminals without modern Unicode support:

------------------------------------------------------------
 T E S T S
------------------------------------------------------------
Running MyProject.Tests.UserServiceTests
  [PASS] CreateUser_WithValidData_ReturnsUser (42ms)
  [PASS] CreateUser_WithInvalidEmail_ThrowsException (8ms)
  [FAIL] DeleteUser_WhenNotFound_ThrowsException (3ms)
  [SKIP] UpdateUser_Integration (Requires database connection)
------------------------------------------------------------

Installation

Add to your test project's .csproj:

<PackageReference Include="Babelserver.DotNet.TestAdapter.xUnit" Version="1.0.2" />

This single package includes both an xUnit adapter that suppresses xUnit's console noise and the Babelserver.DotNet.TestLogger implementation of Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestLogger.

Important: Do remove xunit.runner.visualstudio from your project (this package replaces it). If both are present, tests may run twice and xUnit's console noise will reappear.

Loggers

Two loggers are available:

Logger Command Description
list dotnet test Groups parameterized tests (Theory/InlineData) into a single line
listAll dotnet test --logger listAll Shows every test run individually

Grouped output (default)

Parameterized tests are grouped into a single line:

  ✅ MyTheoryTest (4 runs) (10ms)

If some runs fail, details are shown:

  ❌ MyTheoryTest (2/4 runs failed) (10ms)
    ► MyTheoryTest(input: 2, expected: 3)
    Error: Assert.Equal() Failure...

Verbose output

Use --logger listAll to see every parameterized test individually:

  ✅ MyTheoryTest(input: 1, expected: 2) (2ms)
  ✅ MyTheoryTest(input: 2, expected: 4) (1ms)
  ✅ MyTheoryTest(input: 3, expected: 6) (0ms)

Requirements

  • .NET 8.0 or later
  • xUnit 2.x (for the xUnit adapter)
Package Description
Babelserver.DotNet.TestLogger Standalone logger for NUnit/MSTest (included automatically in this package)

How It Works

This solution consists of two packages:

  1. Babelserver.DotNet.TestLogger - An ITestLoggerWithParameters implementation that formats test results

  2. Babelserver.DotNet.TestAdapter.xUnit - A minimal VSTest adapter that wraps xUnit execution while suppressing its console output. This package automatically includes the TestLogger.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0 128 2/17/2026
2.1.0 93 2/15/2026
2.0.0 685 1/29/2026
1.0.2 95 1/29/2026
1.0.1 99 1/26/2026
1.0.0 233 1/24/2026