Aspire Integration Testing
Integration test patterns for .NET Aspire apps using xUnit fixtures, real dependencies, and runtime endpoint discovery.
- CCM score
- 67 of 100
- skills.sh installs
- 545
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers test fixtures with
IAsyncLifetime, distributed application startup, health-gated waits, and endpoint discovery for ASP.NET Core apps - Includes database testing, Playwright UI tests, Respawn database reset, service-to-service communication, and message queue testing patterns
- Enforces real infrastructure over mocks, dynamic port binding (
127.0.0.1:0), and aDOTNET_HOSTBUILDER__RELOADCONFIGONCHANGEsetting to prevent file watcher exhaustion on Linux - Designed for .NET teams writing integration tests against Aspire-orchestrated services with containerized SQL Server, Redis, or message queues
Install
$ npx -y skills add aaronontheweb/dotnet-skills --skill aspire-integration-testing -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Integration Testing with .NET Aspire + xUnit
When to Use This Skill
Use this skill when:
- Writing integration tests for .NET Aspire applications
- Testing ASP.NET Core apps with real database connections
- Verifying service-to-service communication in distributed applications
- Testing with actual infrastructure (SQL Server, Redis, message queues) in containers
- Combining Playwright UI tests with Aspire-orchestrated services
- Testing microservices with proper service discovery and networking
Reference Files
- advanced-patterns.md: Endpoint discovery, database testing, Playwright, conditional config, Respawn, service communication, message queues
- ci-and-tooling.md: CI/CD integration, custom resource waiters, Aspire CLI with MCP
Core Principles
Details
- Repository
- github.com/aaronontheweb/dotnet-skills
- Categories
- Testing & QA, .NET & C#
- First seen
- Jun 3, 2026
Questions
What does the aspire-integration-testing skill do?
aspire-integration-testing guides an agent to write xUnit integration tests for .NET Aspire applications. It covers test fixtures, distributed application setup, endpoint discovery, and testing ASP.NET Core apps against real dependencies such as SQL Server and Redis in containers.
How do I install the aspire-integration-testing skill?
Run npx -y skills add aaronontheweb/dotnet-skills --skill aspire-integration-testing -y inside your project. After that, aspire-integration-testing lets the agent write tests that start your AppHost through an IAsyncLifetime fixture and discover endpoints at runtime.
Which packages does aspire-integration-testing need in a test project?
aspire-integration-testing expects Aspire.Hosting.Testing, xunit, xunit.runner.visualstudio and Microsoft.NET.Test.Sdk to be referenced in the test project. It also recommends a module initializer that disables configuration reload, which prevents file descriptor exhaustion on Linux when many hosts start.
Where does aspire-integration-testing stand in the Testing & QA category?
aspire-integration-testing sits in the Testing & QA category on Claude Marketplaces, alongside tdd, webapp-testing and test-driven-development. Its focus is narrower, covering .NET Aspire with xUnit against real infrastructure rather than general test-driven workflows.
More from aaronontheweb/dotnet-skills
All 34- Mjml Email Templates535
- Aspire Service Defaults520
- Snapshot Testing509
- Aspire Configuration508
- Dotnet Devcert Trust480
- Skills Index Snippets478
- Playwright Ci Caching476
- Akka Net Best Practices472
- Mailpit Integration465
- Verify Email Snapshots458
- OpenTelemetry NET Instrumentation456
- Akka Hosting Actor Patterns455
- Akka Net Testing Patterns452
- Akka Net Management451
- Akka Net Aspire Configuration437
- Marketplace Publishing430
- Modern Csharp Coding Standards2.4K
- Csharp Concurrency Patterns1.7K
- Efcore Patterns1.6K
- Dependency Injection Patterns732
- Database Performance731
- Dotnet Project Structure723
- Type Design Performance716
- Api Design715
Similar to Aspire Integration Testing
More Testing & QAtestcontainers-integration-testsaaronontheweb/dotnet-skills615 installsIntegration test scaffolding that runs xUnit suites against real databases, caches, and queues in Docker.
akka-net-testing-patternsaaronontheweb/dotnet-skills452 installsWrite unit and integration tests for Akka.NET actors using modern Akka.Hosting.TestKit patterns.
testcontainerswshaddix/dotnet-skills573 installsPatterns for real-infrastructure .NET integration tests using Testcontainers instead of mocks.
integration-testingaj-geddes/useful-ai-prompts564 installsDesign integration tests that verify real API, database, and service interactions without mocking the data layer.
fsharp-testingaffaan-m/ecc8.5K installsF# testing patterns covering xUnit, FsUnit, Unquote, and FsCheck property-based tests for .NET projects.