aspire-integration-testing

Automate integration testing for .NET Aspire applications with real dependencies.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/MudraMartin/dotlight-skillset --skill aspire-integration-testing-mudramartin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aspire-integration-testing
Source: https://github.com/MudraMartin/dotlight-skillset/tree/main/dotnet/aspire-integration-testing
Command: npx skills add https://github.com/MudraMartin/dotlight-skillset --skill aspire-integration-testing-mudramartin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Aspire.Hosting.Testing, xunit, Microsoft.NET.Test.Sdk, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of writing and debugging integration tests for .NET Aspire applications, providing real dependencies and infrastructure, enabling efficient parallelization, and offering best practices for setup and execution.

Core Features & Use Cases

  • Real Dependencies: Utilizes actual infrastructure like databases and caches, avoiding mocks for more realistic test scenarios.
  • Endpoint Discovery: Dynamically discovers endpoints at runtime, eliminating hard-coded URLs.
  • Parallel Isolation: Leverages xUnit collections to control test parallelization and isolation.
  • Health Checks: Ensures services are ready before running tests, enhancing reliability.
  • Use Cases: Ideal for testing .NET Aspire applications, ASP.NET Core apps with real database connections, distributed applications, and microservices with proper service discovery and networking.

Quick Start

Run the integration tests for your Aspire project using the 'aspire-integration-testing' skill.

Frequently Asked Questions about aspire-integration-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write integration tests for .NET Aspire applications with real dependencies?

Integration testing for .NET Aspire uses real dependencies like databases and caches, dynamically discovers endpoints at runtime, and leverages xUnit collections to control parallelization and isolation for reliable distributed application testing.

How does endpoint discovery work in .NET Aspire distributed testing?

Endpoint discovery in .NET Aspire testing dynamically locates service URLs at runtime, eliminating hard-coded addresses and ensuring microservices tests connect reliably to the correct distributed application infrastructure.

Do I need xUnit to run .NET Aspire integration tests in parallel?

Yes, .NET Aspire integration testing requires xUnit, Aspire.Hosting.Testing, and Microsoft.NET.Test.Sdk to execute tests, leveraging xUnit collections to control parallel isolation across distributed application scenarios.

What is the best way to test ASP.NET Core microservices without mocks?

Testing ASP.NET Core microservices without mocks utilizes .NET Aspire integration testing to provision real infrastructure, executing health checks to ensure services are ready before running reliable distributed application tests.

Why do my .NET Aspire integration tests fail before services are ready?

.NET Aspire integration tests fail if services are not ready, utilizing built-in health checks to verify infrastructure availability and ensure real dependencies are fully initialized before test execution begins.

Can I use .NET Aspire testing for distributed applications with dynamic networking?

Yes, .NET Aspire integration testing supports distributed applications and microservices with dynamic service discovery and networking, automatically resolving runtime endpoints for accurate distributed testing.