UnitTestEx.Aspire
7.0.0
dotnet add package UnitTestEx.Aspire --version 7.0.0
NuGet\Install-Package UnitTestEx.Aspire -Version 7.0.0
<PackageReference Include="UnitTestEx.Aspire" Version="7.0.0" />
<PackageVersion Include="UnitTestEx.Aspire" Version="7.0.0" />
<PackageReference Include="UnitTestEx.Aspire" />
paket add UnitTestEx.Aspire --version 7.0.0
#r "nuget: UnitTestEx.Aspire, 7.0.0"
#:package UnitTestEx.Aspire@7.0.0
#addin nuget:?package=UnitTestEx.Aspire&version=7.0.0
#tool nuget:?package=UnitTestEx.Aspire&version=7.0.0
UnitTestEx.Aspire
Real multi-process .NET Aspire integration testing with resource readiness, HTTP helpers, captured resource logs and external HTTP mocking. Package version 7.0.0, with core UnitTestEx as a dependency.
Quick start
using System.Net.Http;
using UnitTestEx;
await using var tester = AspireTester.Create<Projects.MyAppHost>();
await tester.WaitForResourceAsync("shopping");
tester.Http("shopping").Run(HttpMethod.Get, "orders/123").AssertOK();
Reference your AppHost and use its generated Projects.* marker, resource name and route. The test target must be compatible with the AppHost assembly. Libraries target .NET 8/9/10/11; this repository's fixed AppHosts target .NET 10 and its integration suites target .NET 10/11.
Use await using for per-test ownership. Shared WithAspireTester<T> fixtures require asynchronous teardown and explicit state/log isolation. Use callback-supplied application objects inside startup hooks, not reentrant calls to the tester's own startup task.
For xUnit pass output: output or establish ambient UnitTestBase context. Unexpected resource error logs fail tests by default. External HTTP mocking uses a real WireMock resource, not an in-process handler in the test process.
AI assistance and documentation
The package includes skills/unittestex-aspire/SKILL.md. See discovery and optional installation; installation into a consumer repository is explicit.
| 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 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. net11.0 is compatible. |
-
net10.0
- Aspire.Hosting.Testing (>= 13.6.5)
- Azure.Messaging.EventGrid (>= 5.0.0)
- Humanizer (>= 3.0.10)
- MessagePack (>= 2.5.307)
- Microsoft.AspNetCore.WebUtilities (>= 2.3.14)
- UnitTestEx (>= 7.0.0)
- WireMock.Net.RestClient (>= 2.18.0)
- WireMock.Net.Shared (>= 2.18.0)
-
net11.0
- Aspire.Hosting.Testing (>= 13.6.5)
- Azure.Messaging.EventGrid (>= 5.0.0)
- Humanizer (>= 3.0.10)
- MessagePack (>= 2.5.307)
- Microsoft.AspNetCore.WebUtilities (>= 2.3.14)
- UnitTestEx (>= 7.0.0)
- WireMock.Net.RestClient (>= 2.18.0)
- WireMock.Net.Shared (>= 2.18.0)
-
net8.0
- Aspire.Hosting.Testing (>= 13.6.5)
- Azure.Messaging.EventGrid (>= 5.0.0)
- Humanizer (>= 3.0.10)
- MessagePack (>= 2.5.307)
- Microsoft.AspNetCore.WebUtilities (>= 2.3.14)
- UnitTestEx (>= 7.0.0)
- WireMock.Net.RestClient (>= 2.18.0)
- WireMock.Net.Shared (>= 2.18.0)
-
net9.0
- Aspire.Hosting.Testing (>= 13.6.5)
- Azure.Messaging.EventGrid (>= 5.0.0)
- Humanizer (>= 3.0.10)
- MessagePack (>= 2.5.307)
- Microsoft.AspNetCore.WebUtilities (>= 2.3.14)
- UnitTestEx (>= 7.0.0)
- WireMock.Net.RestClient (>= 2.18.0)
- WireMock.Net.Shared (>= 2.18.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on UnitTestEx.Aspire:
| Package | Downloads |
|---|---|
|
CoreEx.UnitTesting
Core .NET extensions and abstractions for the testing of backend services. |
GitHub repositories
This package is not used by any popular GitHub repositories.