Babelserver.DotNet.TestAdapter.xUnit
1.0.2
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
<PackageReference Include="Babelserver.DotNet.TestAdapter.xUnit" Version="1.0.2" />
<PackageVersion Include="Babelserver.DotNet.TestAdapter.xUnit" Version="1.0.2" />
<PackageReference Include="Babelserver.DotNet.TestAdapter.xUnit" />
paket add Babelserver.DotNet.TestAdapter.xUnit --version 1.0.2
#r "nuget: Babelserver.DotNet.TestAdapter.xUnit, 1.0.2"
#:package Babelserver.DotNet.TestAdapter.xUnit@1.0.2
#addin nuget:?package=Babelserver.DotNet.TestAdapter.xUnit&version=1.0.2
#tool nuget:?package=Babelserver.DotNet.TestAdapter.xUnit&version=1.0.2
.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)
Related Packages
| Package | Description |
|---|---|
| Babelserver.DotNet.TestLogger | Standalone logger for NUnit/MSTest (included automatically in this package) |
How It Works
This solution consists of two packages:
Babelserver.DotNet.TestLogger - An
ITestLoggerWithParametersimplementation that formats test resultsBabelserver.DotNet.TestAdapter.xUnit - A minimal VSTest adapter that wraps xUnit execution while suppressing its console output. This package automatically includes the TestLogger.
| Product | Versions 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. |
-
net8.0
- Babelserver.DotNet.TestLogger (>= 1.0.2)
- Microsoft.TestPlatform.ObjectModel (>= 17.14.1)
- xunit.runner.utility (>= 2.9.3)
-
net9.0
- Babelserver.DotNet.TestLogger (>= 1.0.2)
- Microsoft.TestPlatform.ObjectModel (>= 17.14.1)
- xunit.runner.utility (>= 2.9.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.