aspire-integration-testing
Skill4 starsChanged 10 months agoMITView on GitHub
Use when repository includes .NET Aspire usage, distributed application setup, or cross-component behavior validation. Produces BDD-style integration tests with health checks and observability verification.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- TeddyAlbina/skillstheir own version, first seen Nov 1, 2026
- Aaronontheweb/dotnet-skillstheir own version, first seen Aug 7, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Aaronontheweb/dotnet-skills★ 1.2ksame name
- TeddyAlbina/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository67 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agents-onboardingSkill
- agent-workitem-automationSkill
- architecture-testingSkill
- automated-standards-enforcementSkill
- best-practice-introductionSkill
- branching-strategy-and-conventionsSkill
- broken-windowSkill
- change-risk-rollbackSkill
- ci-cd-conformanceSkill
- component-boundary-ownershipSkill
- contract-consistency-validationSkill
- csharp-best-practicesSkill
- deployment-provenanceSkill
- documentation-as-codeSkill
- documentation-scaffoldSkill
- dotnet-bespoke-code-minimisationSkill
- dotnet-best-practicesSkill
- dotnet-domain-primitivesSkill
- dotnet-efcore-practicesSkill
- dotnet-healthchecksSkill
- dotnet-logging-serilogSkill
- dotnet-mapping-standardSkill
- dotnet-open-source-first-governanceSkill
- dotnet-source-generation-firstSkill
- dotnet-specification-patternSkill
- dotnet-testing-assertionsSkill
- environment-traceabilitySkill
- finishing-a-development-branch-iddSkill
- greenfield-baselineSkill
- impacted-scope-enforcementSkill
- incremental-change-impactSkill
- incremental-deploymentSkill
- innersource-governance-bootstrapSkill
- issue-driven-deliverySkill
- library-extraction-stabilisationSkill
- local-dev-experienceSkill
- markdown-authorSkill
- modern-csharp-coding-standardsSkill
- monorepo-orchestration-setupSkill
- observability-logging-baselineSkill
- pair-programmingSkill
- persona-switchingSkill
- process-skill-routerSkill
- quality-gate-enforcementSkill
- release-tagging-planSkill
- repo-best-practices-bootstrapSkill
- repository-foundation-bootstrapSkill
- requirements-gatheringSkill
- runtime-tooling-validationSkill
- safe-brownfield-refactorSkill
- scoped-colocationSkill
- security-processesSkill
- selective-build-testSkill
- semantic-version-impactSkill
- session-awareSkill
- skills-first-workflowSkill
- static-analysis-securitySkill
- structured-review-workflowSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Before creating Aspire integration tests, check for existing patterns:
- Distinctive: line 39
When existing Aspire tests are detected:
- Distinctive: line 41
Existing test project: Add new tests to existing project.
- Distinctive: line 42
Existing strategy doc: Update rather than duplicate.
- Distinctive: line 43
Partial coverage: Add tests for uncovered components only.
- Distinctive: line 45
Only create new test project when detection finds nothing.
- Very specific: line 51
Testing Strategy: Update docs/testing-strategy.md with Aspire testing approach
- Distinctive: line 52
Test Project README: Document what each test validates
- Very specific: line 88
Document: Test strategy in tests/README.md
- Distinctive: line 94
Use pre-built templates to accelerate Aspire test setup:
- Distinctive: line 106
Add reference to your AppHost project
- Very specific: line 107
Run dotnet test to verify setup
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Aspire Integration Testing
Overview
Integration tests for .NET Aspire distributed applications. Validates service startup, health endpoints, cross-component communication, and observability.
REQUIRED: superpowers:test-driven-development, superpowers:verification-before-completion
When to Use
- Repository includes .NET Aspire AppHost
- Distributed application with multiple services
- Cross-component behavior validation needed
- Opt-out: User explicitly refuses testing
Detection and Deference
Before creating Aspire integration tests, check for existing patterns:
Existing Tests Detection
| Pattern | Detection Command | If Found |
| AppHost Tests | find . -name "*.AppHost.Tests.csproj" | Enhance existing |
| Aspire.Hosting.Testing | grep -r "Aspire.Hosting.Testing" *.csproj | Use existing project |
| Test strategy doc | test -f docs/testing-strategy.md | Reference existing |
Deference Rules
When existing Aspire tests are detected:
- Existing test project: Add new tests to existing project.
- Existing strategy doc: Update rather than duplicate.
- Partial coverage: Add tests for uncovered components only.
Only create new test project when detection finds nothing.
Decision Capture
Testing decisions must be captured:
- Testing Strategy: Update
docs/testing-strategy.mdwith Aspire testing approach - Test Project README: Document what each test validates
- ADR (optional): For complex multi-component testing decisions
Testing Strategy Template
Add to docs/testing-strategy.md:
## Aspire Integration Testing
### Scope
- All AppHost-managed services tested
- Health and alive endpoints validated
- Cross-component flows verified
### Test Categories
1. **Startup Tests:** Application starts, all services healthy
2. **Health Tests:** /health and /alive endpoints
3. **Integration Tests:** Cross-component communication
4. **Observability Tests:** Logging, tracing correlationCore Workflow
- Opt-out check: User refused testing? Document in
docs/exclusions.md - Identify components: APIs, workers, databases, queues, caches
- Create test project: Reference Aspire.Hosting.Testing
- Mandatory tests:
- Application starts successfully
/healthendpoint for all services (200 OK)/aliveendpoint for all services (200 OK)- Resource connectivity (database, queue connections)
- Cross-component flows: API → queue → worker, API → database
- Observability: Structured logging, correlation IDs
- Document: Test strategy in
tests/README.md
See Testing Patterns and API Reference.
Reference Templates
Use pre-built templates to accelerate Aspire test setup:
| Template | Use Case |
| templates/aspire-integration-tests.cs.template | Basic Aspire test class |
| templates/aspire-test-project.csproj.template | Test project configuration |
Using Templates
- Copy templates to
tests/{Project}.AppHost.Tests/ - Replace
{NAMESPACE}with your root namespace - Replace
{AppHostProject}with your AppHost project name - Add reference to your AppHost project
- Run
dotnet testto verify setup
Rationalizations Table
| Excuse | Reality |
| "Aspire handles health checks" | Health checks exist but must be validated. Services can fail silently. |
| "Too complex to test" | Aspire.Hosting.Testing makes it straightforward. 20 min setup. |
| "Can test in staging" | Local testing is 10x faster. Staging debugging wastes hours. |
| "Demo doesn't need tests" | Demos become production. Start right or rewrite. |
| "Manual verification is enough" | Manual tests don't catch regression. Automated tests do. |
Red Flags - STOP
- "Aspire infrastructure just works"
- "Too complex to test distributed systems"
- "Can verify in staging/production"
- "Dashboard shows green"
- "Will add tests later"
All mean: Apply skill or document explicit opt-out.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

