XBullet.EasyTesting.Aspire 1.0.13

dotnet add package XBullet.EasyTesting.Aspire --version 1.0.13
                    
NuGet\Install-Package XBullet.EasyTesting.Aspire -Version 1.0.13
                    
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="XBullet.EasyTesting.Aspire" Version="1.0.13" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XBullet.EasyTesting.Aspire" Version="1.0.13" />
                    
Directory.Packages.props
<PackageReference Include="XBullet.EasyTesting.Aspire" />
                    
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 XBullet.EasyTesting.Aspire --version 1.0.13
                    
#r "nuget: XBullet.EasyTesting.Aspire, 1.0.13"
                    
#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 XBullet.EasyTesting.Aspire@1.0.13
                    
#: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=XBullet.EasyTesting.Aspire&version=1.0.13
                    
Install as a Cake Addin
#tool nuget:?package=XBullet.EasyTesting.Aspire&version=1.0.13
                    
Install as a Cake Tool

XBullet.EasyTesting.Aspire

Closed-box distributed application testing helpers for .NET Aspire.

The package targets .NET 8, .NET 9, and .NET 10. Use it when a test needs the complete AppHost topology; keep using WebApplicationFactory and XBullet.EasyTesting for fast, single-service in-memory tests.

Install

dotnet add package XBullet.EasyTesting.Aspire

Example

Reference the AppHost project from the test project, then start the distributed application and wait for the resources the test depends on:

await AspireTestHost.Create<Projects.Orders_AppHost>()
    .WaitForResource("api")
    .WaitForResource("frontend")
    .RunAsync(async (application, cancellationToken) =>
    {
        using var client = application.CreateHttpClient("frontend");
        using var response = await client.GetAsync("/orders/42", cancellationToken);

        response.EnsureSuccessStatusCode();
    }, cancellationToken);

Aspire assigns isolated endpoints and starts the resources declared by the AppHost. The configured startup timeout covers both AppHost startup and resource health checks. Unavailable resources stop the wait immediately instead of consuming the complete timeout.

Use WithArguments(...) for AppHost command-line arguments and ConfigureAppHost(...) when the native IDistributedApplicationTestingBuilder needs test-specific configuration. For manual lifetime control, call StartAsync and dispose the returned application asynchronously.

Failure diagnostics

RunAsync captures an AspireApplicationDiagnostics snapshot before shutdown when the test fails and attaches it to exception.Data[AspireApplicationDiagnostics.ExceptionDataKey]. The snapshot contains each resource's current state, health status, exit code, and bounded recent console logs. Connection strings and endpoint values are intentionally excluded.

Diagnostics can also be captured explicitly:

await using var application = await AspireTestHost.Create<Projects.Orders_AppHost>()
    .WaitForResource("api")
    .StartAsync(cancellationToken);

var diagnostics = await application.CaptureDiagnosticsAsync(cancellationToken);

Documentation

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
1.0.13 32 9/26/2026
1.0.12 35 9/25/2026
1.0.11 38 9/24/2026
1.0.9 36 9/24/2026
1.0.8 89 9/21/2026
1.0.7 80 9/19/2026
1.0.6 89 9/18/2026
1.0.5 78 9/18/2026
1.0.4 80 9/15/2026