TUnit.Assertions.FSharp 0.53.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package TUnit.Assertions.FSharp --version 0.53.0
                    
NuGet\Install-Package TUnit.Assertions.FSharp -Version 0.53.0
                    
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="TUnit.Assertions.FSharp" Version="0.53.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TUnit.Assertions.FSharp" Version="0.53.0" />
                    
Directory.Packages.props
<PackageReference Include="TUnit.Assertions.FSharp" />
                    
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 TUnit.Assertions.FSharp --version 0.53.0
                    
#r "nuget: TUnit.Assertions.FSharp, 0.53.0"
                    
#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 TUnit.Assertions.FSharp@0.53.0
                    
#: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=TUnit.Assertions.FSharp&version=0.53.0
                    
Install as a Cake Addin
#tool nuget:?package=TUnit.Assertions.FSharp&version=0.53.0
                    
Install as a Cake Tool

alternate text is missing from this package README image

๐Ÿš€ The Modern Testing Framework for .NET

TUnit is a next-generation testing framework for C# that outpaces traditional frameworks with source-generated tests, parallel execution by default, and Native AOT support. Built on the modern Microsoft.Testing.Platform, TUnit delivers faster test runs, better developer experience, and unmatched flexibility.

<div align="center">

thomhurst%2FTUnit | Trendshift

Codacy BadgeGitHub Repo stars GitHub Issues or Pull Requests GitHub Sponsors nuget NuGet Downloads GitHub Workflow Status (with event) GitHub last commit (branch) License

</div>

โšก Why Choose TUnit?

Feature Traditional Frameworks TUnit
Test Discovery โŒ Runtime reflection โœ… Compile-time generation
Execution Speed โŒ Sequential by default โœ… Parallel by default
Modern .NET โš ๏ธ Limited AOT support โœ… Full Native AOT & trimming
Test Dependencies โŒ Not supported โœ… [DependsOn] chains
Resource Management โŒ Manual lifecycle โœ… Intelligent cleanup

โšก Parallel by Default - Tests run concurrently with intelligent dependency management

๐ŸŽฏ Compile-Time Discovery - Know your test structure before runtime

๐Ÿ”ง Modern .NET Ready - Native AOT, trimming, and latest .NET features

๐ŸŽญ Extensible - Customize data sources, attributes, and test behavior


<div align="center">

๐Ÿ“š Complete Documentation & Learning Center

๐Ÿš€ New to TUnit? Start with our Getting Started Guide

๐Ÿ”„ Migrating? See our Migration Guides

๐ŸŽฏ Advanced Features? Explore Data-Driven Testing, Test Dependencies, and Parallelism Control

</div>


๐Ÿ Quick Start

dotnet new install TUnit.Templates
dotnet new TUnit -n "MyTestProject"

Manual Installation

dotnet add package TUnit --prerelease

๐Ÿ“– ๐Ÿ“š Complete Documentation & Guides - Everything you need to master TUnit

โœจ Key Features

<table> <tr> <td width="50%">

๐Ÿš€ Performance & Modern Platform

  • ๐Ÿ”ฅ Source-generated tests (no reflection)
  • โšก Parallel execution by default
  • ๐Ÿš€ Native AOT & trimming support
  • ๐Ÿ“ˆ Optimized for performance

</td> <td width="50%">

๐ŸŽฏ Advanced Test Control

  • ๐Ÿ”— Test dependencies with [DependsOn]
  • ๐ŸŽ›๏ธ Parallel limits & custom scheduling
  • ๐Ÿ›ก๏ธ Built-in analyzers & compile-time checks
  • ๐ŸŽญ Custom attributes & extensible conditions

</td> </tr> <tr> <td>

๐Ÿ“Š Rich Data & Assertions

  • ๐Ÿ“‹ Multiple data sources ([Arguments], [Matrix], [ClassData])
  • โœ… Fluent async assertions
  • ๐Ÿ”„ Smart retry logic & conditional execution
  • ๐Ÿ“ Rich test metadata & context

</td> <td>

๐Ÿ”ง Developer Experience

  • ๐Ÿ’‰ Full dependency injection support
  • ๐Ÿช Comprehensive lifecycle hooks
  • ๐ŸŽฏ IDE integration (VS, Rider, VS Code)
  • ๐Ÿ“š Extensive documentation & examples

</td> </tr> </table>

๐Ÿ“ Simple Test Example

[Test]
public async Task User_Creation_Should_Set_Timestamp()
{
    // Arrange
    var userService = new UserService();

    // Act
    var user = await userService.CreateUserAsync("john.doe@example.com");

    // Assert - TUnit's fluent assertions
    await Assert.That(user.CreatedAt)
        .IsEqualTo(DateTime.Now)
        .Within(TimeSpan.FromMinutes(1));

    await Assert.That(user.Email)
        .IsEqualTo("john.doe@example.com");
}

๐ŸŽฏ Data-Driven Testing

[Test]
[Arguments("user1@test.com", "ValidPassword123")]
[Arguments("user2@test.com", "AnotherPassword456")]
[Arguments("admin@test.com", "AdminPass789")]
public async Task User_Login_Should_Succeed(string email, string password)
{
    var result = await authService.LoginAsync(email, password);
    await Assert.That(result.IsSuccess).IsTrue();
}

// Matrix testing - tests all combinations
[Test]
[MatrixDataSource]
public async Task Database_Operations_Work(
    [Matrix("Create", "Update", "Delete")] string operation,
    [Matrix("User", "Product", "Order")] string entity)
{
    await Assert.That(await ExecuteOperation(operation, entity))
        .IsTrue();
}

๐Ÿ”— Advanced Test Orchestration

[Before(Class)]
public static async Task SetupDatabase(ClassHookContext context)
{
    await DatabaseHelper.InitializeAsync();
}

[Test, DisplayName("Register a new account")]
[MethodDataSource(nameof(GetTestUsers))]
public async Task Register_User(string username, string password)
{
    // Test implementation
}

[Test, DependsOn(nameof(Register_User))]
[Retry(3)] // Retry on failure
public async Task Login_With_Registered_User(string username, string password)
{
    // This test runs after Register_User completes
}

[Test]
[ParallelLimit<LoadTestParallelLimit>] // Custom parallel control
[Repeat(100)] // Run 100 times
public async Task Load_Test_Homepage()
{
    // Performance testing
}

// Custom attributes
[Test, WindowsOnly, RetryOnHttpError(5)]
public async Task Windows_Specific_Feature()
{
    // Platform-specific test with custom retry logic
}

public class LoadTestParallelLimit : IParallelLimit
{
    public int Limit => 10; // Limit to 10 concurrent executions
}

๐Ÿ”ง Smart Test Control

// Custom conditional execution
public class WindowsOnlyAttribute : SkipAttribute
{
    public WindowsOnlyAttribute() : base("Windows only test") { }

    public override Task<bool> ShouldSkip(TestContext testContext)
        => Task.FromResult(!OperatingSystem.IsWindows());
}

// Custom retry logic
public class RetryOnHttpErrorAttribute : RetryAttribute
{
    public RetryOnHttpErrorAttribute(int times) : base(times) { }

    public override Task<bool> ShouldRetry(TestInformation testInformation,
        Exception exception, int currentRetryCount)
        => Task.FromResult(exception is HttpRequestException { StatusCode: HttpStatusCode.ServiceUnavailable });
}

๐ŸŽฏ Perfect For Every Testing Scenario

<table> <tr> <td width="33%">

๐Ÿงช Unit Testing

[Test]
[Arguments(1, 2, 3)]
[Arguments(5, 10, 15)]
public async Task Calculate_Sum(int a, int b, int expected)
{
    await Assert.That(Calculator.Add(a, b))
        .IsEqualTo(expected);
}

Fast, isolated, and reliable

</td> <td width="33%">

๐Ÿ”— Integration Testing

[Test, DependsOn(nameof(CreateUser))]
public async Task Login_After_Registration()
{
    // Runs after CreateUser completes
    var result = await authService.Login(user);
    await Assert.That(result.IsSuccess).IsTrue();
}

Stateful workflows made simple

</td> <td width="33%">

โšก Load Testing

[Test]
[ParallelLimit<LoadTestLimit>]
[Repeat(1000)]
public async Task API_Handles_Concurrent_Requests()
{
    await Assert.That(await httpClient.GetAsync("/api/health"))
        .HasStatusCode(HttpStatusCode.OK);
}

Built-in performance testing

</td> </tr> </table>

๐Ÿš€ What Makes TUnit Different?

Compile-Time Intelligence

Tests are discovered at build time, not runtime - enabling faster discovery, better IDE integration, and precise resource lifecycle management.

Parallel-First Architecture

Built for concurrency from day one with [DependsOn] for test chains, [ParallelLimit] for resource control, and intelligent scheduling.

Extensible by Design

The DataSourceGenerator<T> pattern and custom attribute system let you extend TUnit's capabilities without modifying core framework code.

๐Ÿ† Community & Ecosystem

<div align="center">

๐ŸŒŸ Join thousands of developers modernizing their testing

Downloads Contributors Discussions

</div>

๐Ÿค Active Community

๐Ÿ› ๏ธ IDE Support

TUnit works seamlessly across all major .NET development environments:

Visual Studio (2022 17.13+)

โœ… Fully supported - No additional configuration needed for latest versions

โš™๏ธ Earlier versions: Enable "Use testing platform server mode" in Tools > Manage Preview Features

JetBrains Rider

โœ… Fully supported

โš™๏ธ Setup: Enable "Testing Platform support" in Settings > Build, Execution, Deployment > Unit Testing > VSTest

Visual Studio Code

โœ… Fully supported

โš™๏ธ Setup: Install C# Dev Kit and enable "Use Testing Platform Protocol"

Command Line

โœ… Full CLI support - Works with dotnet test, dotnet run, and direct executable execution

๐Ÿ“ฆ Package Options

Package Use Case
TUnit โญ Start here - Complete testing framework (includes Core + Engine + Assertions)
TUnit.Core ๐Ÿ“š Test libraries and shared components (no execution engine)
TUnit.Engine ๐Ÿš€ Test execution engine and adapter (for test projects)
TUnit.Assertions โœ… Standalone assertions (works with any test framework)
TUnit.Playwright ๐ŸŽญ Playwright integration with automatic lifecycle management

๐ŸŽฏ Migration from Other Frameworks

Coming from NUnit or xUnit? TUnit maintains familiar syntax while adding modern capabilities:

// Enhanced with TUnit's advanced features
[Test]
[Arguments("value1")]
[Arguments("value2")]
[Retry(3)]
[ParallelLimit<CustomLimit>]
public async Task Modern_TUnit_Test(string value) { }

๐Ÿ“– Need help migrating? Check our detailed Migration Guides with step-by-step instructions for xUnit, NUnit, and MSTest.

๐Ÿ’ก Current Status

The API is mostly stable, but may have some changes based on feedback or issues before v1.0 release.


<div align="center">

๐Ÿš€ Ready to Experience the Future of .NET Testing?

โšก Start in 30 Seconds

# Create a new test project with examples
dotnet new install TUnit.Templates && dotnet new TUnit -n "MyAwesomeTests"

# Or add to existing project
dotnet add package TUnit --prerelease

๐ŸŽฏ Why Wait? Join the Movement

<table> <tr> <td align="center" width="25%">

๐Ÿ“ˆ Performance

Optimized execution Parallel by default Zero reflection overhead

</td> <td align="center" width="25%">

๐Ÿ”ฎ Future-Ready

Native AOT support Latest .NET features Source generation

</td> <td align="center" width="25%">

๐Ÿ› ๏ธ Developer Experience

Compile-time checks Rich IDE integration Intelligent debugging

</td> <td align="center" width="25%">

๐ŸŽญ Flexibility

Test dependencies Custom attributes Extensible architecture

</td> </tr> </table>


๐Ÿ“– Learn More: tunit.dev | ๐Ÿ’ฌ Get Help: GitHub Discussions | โญ Show Support: Star on GitHub

TUnit is actively developed and production-ready. Join our growing community of developers who've made the switch!

</div>

Performance Benchmark

Scenario: Building the test project

macos-latest

BenchmarkDotNet v0.15.2, macOS Sonoma 14.7.6 (23H626) [Darwin 23.6.0]
Apple M1 (Virtual), 1 CPU, 3 logical and 3 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
Build_TUnit 0.52.64 1,039.9 ms 29.30 ms 80.70 ms 1,026.4 ms
Build_NUnit 4.3.2 881.2 ms 17.33 ms 26.46 ms 878.6 ms
Build_xUnit 2.9.3 1,030.9 ms 48.12 ms 138.83 ms 1,012.0 ms
Build_MSTest 3.10.1 1,099.4 ms 65.01 ms 187.58 ms 1,073.7 ms
ubuntu-latest

BenchmarkDotNet v0.15.2, Linux Ubuntu 24.04.2 LTS (Noble Numbat)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
Build_TUnit 0.52.64 1.840 s 0.0336 s 0.0552 s 1.826 s
Build_NUnit 4.3.2 1.538 s 0.0256 s 0.0240 s 1.539 s
Build_xUnit 2.9.3 1.559 s 0.0185 s 0.0173 s 1.557 s
Build_MSTest 3.10.1 1.561 s 0.0233 s 0.0218 s 1.568 s
windows-latest

BenchmarkDotNet v0.15.2, Windows 10 (10.0.20348.3932) (Hyper-V)
AMD EPYC 7763 2.44GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
Build_TUnit 0.52.64 1.871 s 0.0325 s 0.0657 s 1.861 s
Build_NUnit 4.3.2 1.587 s 0.0267 s 0.0250 s 1.588 s
Build_xUnit 2.9.3 1.590 s 0.0271 s 0.0253 s 1.591 s
Build_MSTest 3.10.1 1.609 s 0.0184 s 0.0172 s 1.612 s

Scenario: Tests focused on assertion performance and validation

macos-latest

BenchmarkDotNet v0.15.2, macOS Sonoma 14.7.6 (23H626) [Darwin 23.6.0]
Apple M1 (Virtual), 1 CPU, 3 logical and 3 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 NA NA NA NA
TUnit 0.52.64 NA NA NA NA
NUnit 4.3.2 NA NA NA NA
xUnit 2.9.3 NA NA NA NA
MSTest 3.10.1 NA NA NA NA

Benchmarks with issues: RuntimeBenchmarks.TUnit_AOT: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.TUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.NUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.xUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.MSTest: Job-YNJDZW(Runtime=.NET 9.0)

ubuntu-latest

BenchmarkDotNet v0.15.2, Linux Ubuntu 24.04.2 LTS (Noble Numbat)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 NA NA NA NA
TUnit 0.52.64 NA NA NA NA
NUnit 4.3.2 NA NA NA NA
xUnit 2.9.3 NA NA NA NA
MSTest 3.10.1 NA NA NA NA

Benchmarks with issues: RuntimeBenchmarks.TUnit_AOT: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.TUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.NUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.xUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.MSTest: Job-YNJDZW(Runtime=.NET 9.0)

windows-latest

BenchmarkDotNet v0.15.2, Windows 10 (10.0.20348.3932) (Hyper-V)
AMD EPYC 7763 2.44GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 NA NA NA NA
TUnit 0.52.64 NA NA NA NA
NUnit 4.3.2 NA NA NA NA
xUnit 2.9.3 NA NA NA NA
MSTest 3.10.1 NA NA NA NA

Benchmarks with issues: RuntimeBenchmarks.TUnit_AOT: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.TUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.NUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.xUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.MSTest: Job-YNJDZW(Runtime=.NET 9.0)

Scenario: Tests running asynchronous operations and async/await patterns

macos-latest

BenchmarkDotNet v0.15.2, macOS Sonoma 14.7.6 (23H626) [Darwin 23.6.0]
Apple M1 (Virtual), 1 CPU, 3 logical and 3 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 103.6 ms 1.88 ms 1.66 ms 103.4 ms
TUnit 0.52.64 519.4 ms 7.80 ms 6.92 ms 519.0 ms
NUnit 4.3.2 752.9 ms 14.85 ms 27.15 ms 744.7 ms
xUnit 2.9.3 789.1 ms 14.52 ms 29.33 ms 778.5 ms
MSTest 3.10.1 684.7 ms 7.72 ms 6.45 ms 686.6 ms
ubuntu-latest

BenchmarkDotNet v0.15.2, Linux Ubuntu 24.04.2 LTS (Noble Numbat)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 32.23 ms 0.153 ms 0.143 ms 32.24 ms
TUnit 0.52.64 891.98 ms 17.453 ms 18.674 ms 894.92 ms
NUnit 4.3.2 1,286.54 ms 10.802 ms 9.576 ms 1,286.43 ms
xUnit 2.9.3 1,388.62 ms 13.832 ms 12.939 ms 1,387.46 ms
MSTest 3.10.1 1,237.95 ms 8.184 ms 7.255 ms 1,239.58 ms
windows-latest

BenchmarkDotNet v0.15.2, Windows 10 (10.0.20348.3932) (Hyper-V)
AMD EPYC 7763 2.44GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 77.50 ms 1.303 ms 1.155 ms 77.96 ms
TUnit 0.52.64 995.14 ms 19.574 ms 34.282 ms 986.41 ms
NUnit 4.3.2 1,384.84 ms 20.306 ms 16.956 ms 1,386.31 ms
xUnit 2.9.3 1,535.51 ms 26.033 ms 35.635 ms 1,534.29 ms
MSTest 3.10.1 1,370.54 ms 24.680 ms 30.309 ms 1,362.96 ms

Scenario: Simple tests with basic operations and assertions

macos-latest

BenchmarkDotNet v0.15.2, macOS Sonoma 14.7.6 (23H626) [Darwin 23.6.0]
Apple M1 (Virtual), 1 CPU, 3 logical and 3 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 99.30 ms 1.986 ms 1.858 ms 99.32 ms
TUnit 0.52.64 554.72 ms 10.420 ms 9.237 ms 555.00 ms
NUnit 4.3.2 794.77 ms 15.738 ms 34.545 ms 783.05 ms
xUnit 2.9.3 1,062.76 ms 59.316 ms 168.270 ms 1,033.66 ms
MSTest 3.10.1 1,478.70 ms 86.729 ms 251.615 ms 1,440.97 ms
ubuntu-latest

BenchmarkDotNet v0.15.2, Linux Ubuntu 24.04.2 LTS (Noble Numbat)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 32.83 ms 0.360 ms 0.337 ms 32.79 ms
TUnit 0.52.64 942.73 ms 18.099 ms 19.365 ms 942.49 ms
NUnit 4.3.2 1,363.31 ms 13.903 ms 13.005 ms 1,367.44 ms
xUnit 2.9.3 1,436.99 ms 7.763 ms 6.061 ms 1,440.06 ms
MSTest 3.10.1 1,301.31 ms 8.635 ms 7.655 ms 1,300.96 ms
windows-latest

BenchmarkDotNet v0.15.2, Windows 10 (10.0.20348.3932) (Hyper-V)
AMD EPYC 7763 2.44GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 62.62 ms 0.678 ms 0.566 ms 62.45 ms
TUnit 0.52.64 985.26 ms 19.305 ms 23.709 ms 984.45 ms
NUnit 4.3.2 1,380.95 ms 14.765 ms 13.812 ms 1,384.90 ms
xUnit 2.9.3 1,444.05 ms 17.576 ms 16.441 ms 1,446.09 ms
MSTest 3.10.1 1,330.96 ms 12.821 ms 11.365 ms 1,330.73 ms

Scenario: Parameterized tests with multiple test cases using data attributes

macos-latest

BenchmarkDotNet v0.15.2, macOS Sonoma 14.7.6 (23H626) [Darwin 23.6.0]
Apple M1 (Virtual), 1 CPU, 3 logical and 3 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 NA NA NA NA
TUnit 0.52.64 NA NA NA NA
NUnit 4.3.2 1,107.8 ms 97.71 ms 288.09 ms 1,049.4 ms
xUnit 2.9.3 864.3 ms 34.70 ms 97.88 ms 847.2 ms
MSTest 3.10.1 979.2 ms 65.62 ms 189.32 ms 980.0 ms

Benchmarks with issues: RuntimeBenchmarks.TUnit_AOT: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.TUnit: Job-YNJDZW(Runtime=.NET 9.0)

ubuntu-latest

BenchmarkDotNet v0.15.2, Linux Ubuntu 24.04.2 LTS (Noble Numbat)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 NA NA NA NA
TUnit 0.52.64 NA NA NA NA
NUnit 4.3.2 1.281 s 0.0078 s 0.0070 s 1.283 s
xUnit 2.9.3 1.355 s 0.0080 s 0.0074 s 1.358 s
MSTest 3.10.1 1.233 s 0.0112 s 0.0099 s 1.232 s

Benchmarks with issues: RuntimeBenchmarks.TUnit_AOT: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.TUnit: Job-YNJDZW(Runtime=.NET 9.0)

windows-latest

BenchmarkDotNet v0.15.2, Windows 10 (10.0.20348.3932) (Hyper-V)
AMD EPYC 7763 2.44GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 NA NA NA NA
TUnit 0.52.64 NA NA NA NA
NUnit 4.3.2 1.358 s 0.0187 s 0.0166 s 1.359 s
xUnit 2.9.3 1.406 s 0.0210 s 0.0197 s 1.413 s
MSTest 3.10.1 1.299 s 0.0099 s 0.0092 s 1.298 s

Benchmarks with issues: RuntimeBenchmarks.TUnit_AOT: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.TUnit: Job-YNJDZW(Runtime=.NET 9.0)

Scenario: Tests utilizing class fixtures and shared test context

macos-latest

BenchmarkDotNet v0.15.2, macOS Sonoma 14.7.6 (23H626) [Darwin 23.6.0]
Apple M1 (Virtual), 1 CPU, 3 logical and 3 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 94.78 ms 1.114 ms 0.870 ms 94.68 ms
TUnit 0.52.64 545.56 ms 14.362 ms 41.895 ms 527.37 ms
NUnit 4.3.2 795.54 ms 35.025 ms 97.635 ms 766.91 ms
xUnit 2.9.3 892.99 ms 45.795 ms 134.310 ms 849.28 ms
MSTest 3.10.1 866.24 ms 25.115 ms 72.059 ms 853.30 ms
ubuntu-latest

BenchmarkDotNet v0.15.2, Linux Ubuntu 24.04.2 LTS (Noble Numbat)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 32.14 ms 0.164 ms 0.153 ms 32.15 ms
TUnit 0.52.64 905.03 ms 17.804 ms 21.864 ms 899.86 ms
NUnit 4.3.2 1,315.09 ms 8.081 ms 7.559 ms 1,316.97 ms
xUnit 2.9.3 1,402.00 ms 16.940 ms 15.846 ms 1,405.79 ms
MSTest 3.10.1 NA NA NA NA

Benchmarks with issues: RuntimeBenchmarks.MSTest: Job-YNJDZW(Runtime=.NET 9.0)

windows-latest

BenchmarkDotNet v0.15.2, Windows 10 (10.0.20348.3932) (Hyper-V)
AMD EPYC 7763 2.44GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 62.18 ms 0.700 ms 0.584 ms 62.38 ms
TUnit 0.52.64 961.97 ms 18.876 ms 25.199 ms 957.70 ms
NUnit 4.3.2 1,358.06 ms 16.919 ms 15.826 ms 1,349.80 ms
xUnit 2.9.3 1,431.97 ms 7.020 ms 5.862 ms 1,431.08 ms
MSTest 3.10.1 NA NA NA NA

Benchmarks with issues: RuntimeBenchmarks.MSTest: Job-YNJDZW(Runtime=.NET 9.0)

Scenario: Tests executing in parallel to test framework parallelization

macos-latest

BenchmarkDotNet v0.15.2, macOS Sonoma 14.7.6 (23H626) [Darwin 23.6.0]
Apple M1 (Virtual), 1 CPU, 3 logical and 3 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 95.75 ms 1.857 ms 2.835 ms 94.40 ms
TUnit 0.52.64 579.37 ms 28.937 ms 83.951 ms 547.72 ms
NUnit 4.3.2 977.92 ms 37.428 ms 107.387 ms 958.20 ms
xUnit 2.9.3 897.98 ms 20.740 ms 60.501 ms 890.85 ms
MSTest 3.10.1 810.10 ms 16.288 ms 48.026 ms 796.36 ms
ubuntu-latest

BenchmarkDotNet v0.15.2, Linux Ubuntu 24.04.2 LTS (Noble Numbat)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 31.80 ms 0.307 ms 0.272 ms 31.71 ms
TUnit 0.52.64 904.36 ms 17.450 ms 20.773 ms 910.68 ms
NUnit 4.3.2 1,328.36 ms 18.041 ms 15.993 ms 1,328.14 ms
xUnit 2.9.3 1,414.99 ms 18.680 ms 17.473 ms 1,410.57 ms
MSTest 3.10.1 1,272.61 ms 12.897 ms 12.064 ms 1,274.36 ms
windows-latest

BenchmarkDotNet v0.15.2, Windows 10 (10.0.20348.3932) (Hyper-V)
AMD EPYC 7763 2.44GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 62.23 ms 0.481 ms 0.402 ms 62.36 ms
TUnit 0.52.64 930.90 ms 18.596 ms 19.097 ms 932.36 ms
NUnit 4.3.2 1,339.82 ms 7.469 ms 6.987 ms 1,341.19 ms
xUnit 2.9.3 1,401.46 ms 26.282 ms 23.298 ms 1,395.71 ms
MSTest 3.10.1 1,284.52 ms 10.047 ms 8.906 ms 1,285.01 ms

Scenario: A test that takes 50ms to execute, repeated 100 times

macos-latest

BenchmarkDotNet v0.15.2, macOS Sonoma 14.7.6 (23H626) [Darwin 23.6.0]
Apple M1 (Virtual), 1 CPU, 3 logical and 3 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 NA NA NA NA
TUnit 0.52.64 NA NA NA NA
NUnit 4.3.2 NA NA NA NA
xUnit 2.9.3 NA NA NA NA
MSTest 3.10.1 NA NA NA NA

Benchmarks with issues: RuntimeBenchmarks.TUnit_AOT: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.TUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.NUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.xUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.MSTest: Job-YNJDZW(Runtime=.NET 9.0)

ubuntu-latest

BenchmarkDotNet v0.15.2, Linux Ubuntu 24.04.2 LTS (Noble Numbat)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 NA NA NA NA
TUnit 0.52.64 NA NA NA NA
NUnit 4.3.2 NA NA NA NA
xUnit 2.9.3 NA NA NA NA
MSTest 3.10.1 NA NA NA NA

Benchmarks with issues: RuntimeBenchmarks.TUnit_AOT: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.TUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.NUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.xUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.MSTest: Job-YNJDZW(Runtime=.NET 9.0)

windows-latest

BenchmarkDotNet v0.15.2, Windows 10 (10.0.20348.3932) (Hyper-V)
AMD EPYC 7763 2.44GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 NA NA NA NA
TUnit 0.52.64 NA NA NA NA
NUnit 4.3.2 NA NA NA NA
xUnit 2.9.3 NA NA NA NA
MSTest 3.10.1 NA NA NA NA

Benchmarks with issues: RuntimeBenchmarks.TUnit_AOT: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.TUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.NUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.xUnit: Job-YNJDZW(Runtime=.NET 9.0) RuntimeBenchmarks.MSTest: Job-YNJDZW(Runtime=.NET 9.0)

Scenario: Tests with setup and teardown lifecycle methods

macos-latest

BenchmarkDotNet v0.15.2, macOS Sonoma 14.7.6 (23H626) [Darwin 23.6.0]
Apple M1 (Virtual), 1 CPU, 3 logical and 3 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), Arm64 RyuJIT AdvSIMD

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 108.6 ms 2.39 ms 6.78 ms 107.0 ms
TUnit 0.52.64 620.3 ms 16.93 ms 48.57 ms 610.0 ms
NUnit 4.3.2 849.8 ms 16.96 ms 45.28 ms 842.0 ms
xUnit 2.9.3 762.9 ms 14.48 ms 25.35 ms 753.5 ms
MSTest 3.10.1 678.0 ms 8.12 ms 6.78 ms 678.7 ms
ubuntu-latest

BenchmarkDotNet v0.15.2, Linux Ubuntu 24.04.2 LTS (Noble Numbat)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 32.09 ms 0.152 ms 0.143 ms 32.09 ms
TUnit 0.52.64 909.35 ms 17.945 ms 20.665 ms 908.33 ms
NUnit 4.3.2 1,311.99 ms 15.732 ms 14.715 ms 1,307.56 ms
xUnit 2.9.3 1,417.74 ms 17.790 ms 16.641 ms 1,409.63 ms
MSTest 3.10.1 1,296.41 ms 10.906 ms 10.201 ms 1,291.17 ms
windows-latest

BenchmarkDotNet v0.15.2, Windows 10 (10.0.20348.3932) (Hyper-V)
AMD EPYC 7763 2.44GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.304
  [Host]     : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2
  Job-YNJDZW : .NET 9.0.8 (9.0.825.36511), X64 RyuJIT AVX2

Runtime=.NET 9.0  

Method Version Mean Error StdDev Median
TUnit_AOT 0.52.64 62.39 ms 0.160 ms 0.134 ms 62.39 ms
TUnit 0.52.64 956.30 ms 19.070 ms 22.702 ms 949.75 ms
NUnit 4.3.2 1,350.16 ms 20.686 ms 18.338 ms 1,350.57 ms
xUnit 2.9.3 1,412.25 ms 14.038 ms 13.131 ms 1,412.12 ms
MSTest 3.10.1 1,312.66 ms 19.996 ms 18.704 ms 1,311.36 ms
Product 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 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. 
.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. 
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
0.55.23 9 8/13/2025
0.55.21 7 8/13/2025
0.55.6 12 8/12/2025
0.55.0 11 8/11/2025
0.53.0 129 8/8/2025
0.52.64 167 8/7/2025
0.52.60 163 8/7/2025
0.52.56 162 8/7/2025
0.52.51 162 8/7/2025
0.52.49 164 8/7/2025
0.52.47 166 8/7/2025
0.52.30 165 8/6/2025
0.52.25 166 8/6/2025
0.52.24 167 8/6/2025
0.52.22 165 8/6/2025
0.52.8 165 8/6/2025
0.52.2 168 8/6/2025
0.52.0 167 8/6/2025
0.50.0 105 8/3/2025
0.25.21 313 6/10/2025
0.25.6 144 6/5/2025
0.25.0 178 6/5/2025
0.24.0 2,169 6/1/2025
0.23.5 179 6/1/2025
0.23.0 110 5/31/2025
0.22.31 107 5/30/2025
0.22.24 212 5/28/2025
0.22.20 187 5/27/2025
0.22.12 219 5/25/2025
0.22.10 220 5/25/2025
0.22.6 109 5/24/2025
0.21.16 309 5/21/2025
0.21.13 185 5/20/2025
0.21.7 191 5/20/2025
0.21.1 235 5/19/2025
0.20.18 161 5/19/2025
0.20.16 161 5/18/2025
0.20.11 153 5/18/2025
0.20.4 118 5/17/2025