Accelergreat.Xunit 5.0.0

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

Accelergreat.Xunit

xUnit 2 integration package for Accelergreat.

Install

dotnet add package Accelergreat.Xunit

Minimal project file

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

  <ItemGroup>
    <PackageReference Include="Accelergreat.Xunit" Version="5.0.0" />
    <PackageReference Include="xunit" Version="2.*" />
    <PackageReference Include="xunit.runner.visualstudio" Version="2.*" />
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.*" />
  </ItemGroup>
</Project>

What you get

  • AccelergreatXunitTest base class for integration tests
  • constructor DI support via IAccelergreatEnvironmentPool
  • startup discovery through IAccelergreatStartup
  • environment pooling and reset orchestration

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();
    }
}

Notes

  • Use this package for xUnit 2 test projects.
  • For xUnit 3 projects, use Accelergreat.Xunit3.

Validation command

dotnet test Accelergreat.sln -m:1

FAQ

  • Can I use this with xUnit3?
    • No. Use Accelergreat.Xunit3 for xUnit3 projects.
  • Do I need special constructor parameters?
    • Use IAccelergreatEnvironmentPool in your test constructor.
  • Can I run xUnit2 and xUnit3 side by side?
    • Yes, in separate projects.

Migrating to xUnit 3

Migration steps and pitfalls are documented in:

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.1 100 4/2/2026
5.0.0 86 4/2/2026
5.0.0-beta.eadb69d 55 2/25/2026
4.0.2 350 7/16/2025
4.0.1 264 7/15/2025
4.0.0 384 6/16/2025
4.0.0-alpha.c246138 160 7/15/2025
4.0.0-alpha.8c58a78 166 7/15/2025
3.1.1-beta 674 11/6/2024
3.1.0-beta 146 11/6/2024
3.0.0 626 7/13/2024
3.0.0-beta.2 742 2/12/2024
3.0.0-beta.1 128 2/9/2024
2.3.0-beta 634 1/23/2024
2.2.7 926 9/1/2023
2.2.6-beta 235 9/1/2023
2.2.5-beta 230 9/1/2023
2.2.4 279 9/1/2023
2.2.3-beta 556 3/26/2023
2.2.2-beta 268 3/26/2023
Loading failed