Accelergreat.Xunit3 5.0.0-beta.eadb69d

Prefix Reserved
This is a prerelease version of Accelergreat.Xunit3.
dotnet add package Accelergreat.Xunit3 --version 5.0.0-beta.eadb69d
                    
NuGet\Install-Package Accelergreat.Xunit3 -Version 5.0.0-beta.eadb69d
                    
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="Accelergreat.Xunit3" Version="5.0.0-beta.eadb69d" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Accelergreat.Xunit3" Version="5.0.0-beta.eadb69d" />
                    
Directory.Packages.props
<PackageReference Include="Accelergreat.Xunit3" />
                    
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 Accelergreat.Xunit3 --version 5.0.0-beta.eadb69d
                    
#r "nuget: Accelergreat.Xunit3, 5.0.0-beta.eadb69d"
                    
#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 Accelergreat.Xunit3@5.0.0-beta.eadb69d
                    
#: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=Accelergreat.Xunit3&version=5.0.0-beta.eadb69d&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Accelergreat.Xunit3&version=5.0.0-beta.eadb69d&prerelease
                    
Install as a Cake Tool

Accelergreat.Xunit3

xUnit 3 integration package for Accelergreat.

This package keeps the same day-to-day test shape used by Accelergreat.Xunit, while adapting internals to xUnit 3 extensibility APIs.

Install

dotnet add package Accelergreat.Xunit3

Minimal project file

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <IsPackable>false</IsPackable>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Accelergreat.Xunit3" Version="5.0.0-beta.eadb69d" />
    <PackageReference Include="xunit.v3" Version="3.*" />
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.*" />
  </ItemGroup>
</Project>

What you get

  • AccelergreatXunitTest base class
  • constructor DI support for IAccelergreatEnvironmentPool
  • startup discovery through IAccelergreatStartup
  • environment pooling and reset behavior aligned with xUnit2 package goals

Basic setup

public class Startup : IAccelergreatStartup
{
    public void Configure(IAccelergreatBuilder builder)
    {
        builder.AddAccelergreatComponent<AppDatabaseComponent>();
        builder.AddAccelergreatComponent<AppApiComponent>();
    }
}
public class ApiTests : AccelergreatXunitTest
{
    public ApiTests(IAccelergreatEnvironmentPool environmentPool) : base(environmentPool)
    {
    }

    [Fact]
    public async Task Should_return_ok()
    {
        var client = GetComponent<AppApiComponent>().CreateClient();
        var response = await client.GetAsync("/health");
        response.EnsureSuccessStatusCode();
    }
}

xUnit2 to xUnit3 migration checklist

  1. Replace Accelergreat.Xunit with Accelergreat.Xunit3.
  2. Keep IAccelergreatStartup and component registration as-is.
  3. Keep constructor injection via IAccelergreatEnvironmentPool for Accelergreat tests.
  4. Verify xUnit3-compatible runner/extensibility package references in the test project.
  5. Run full suite with mirrored projects/sources to validate parity.

Validation command

dotnet test Accelergreat.sln -m:1

Common pitfalls

  • Compiling xUnit2 and xUnit3 lifecycle signatures in the same target.
  • Missing xUnit3 runner dependencies in test projects.
  • Assuming fixture wiring without validating the custom framework activation path.

FAQ

  • Do I need to change all test constructors to fixtures?
    • No. Keep IAccelergreatEnvironmentPool where your tests inherit AccelergreatXunitTest.
  • Can I migrate gradually?
    • Yes. Keep xUnit2 projects and introduce mirrored xUnit3 projects.
  • What is the first migration validation step?
    • Run serial full-suite tests and compare outcomes between xUnit2 and xUnit3 projects.

When to use Accelergreat.Xunit instead

Use Accelergreat.Xunit if your test project is still on xUnit 2 and you are not yet migrating.

Full migration guide

See ../../README.md.

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 is compatible.  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
5.0.0-beta.eadb69d 32 2/25/2026