Skip to content
aaronontheweb avatar

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
View on GitHub

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 a DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE setting 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 -y

Installs 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

Similar to Aspire Integration Testing

More Testing & QA