Babelserver.DotNet.TestAdapter.xUnit
1.0.0
See the version list below for details.
dotnet add package Babelserver.DotNet.TestAdapter.xUnit --version 1.0.0
NuGet\Install-Package Babelserver.DotNet.TestAdapter.xUnit -Version 1.0.0
<PackageReference Include="Babelserver.DotNet.TestAdapter.xUnit" Version="1.0.0" />
<PackageVersion Include="Babelserver.DotNet.TestAdapter.xUnit" Version="1.0.0" />
<PackageReference Include="Babelserver.DotNet.TestAdapter.xUnit" />
paket add Babelserver.DotNet.TestAdapter.xUnit --version 1.0.0
#r "nuget: Babelserver.DotNet.TestAdapter.xUnit, 1.0.0"
#:package Babelserver.DotNet.TestAdapter.xUnit@1.0.0
#addin nuget:?package=Babelserver.DotNet.TestAdapter.xUnit&version=1.0.0
#tool nuget:?package=Babelserver.DotNet.TestAdapter.xUnit&version=1.0.0
.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.0" />
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.
Requirements
- .NET 8.0 or later
- xUnit 2.x (for the xUnit adapter)
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.0)
- Microsoft.TestPlatform.ObjectModel (>= 17.14.1)
- xunit.runner.utility (>= 2.9.3)
-
net9.0
- Babelserver.DotNet.TestLogger (>= 1.0.0)
- 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.