aspire-test-strategy

Choose builder or integration tests for .NET Aspire projects.

5|4|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/microcks/microcks-aspire --skill aspire-test-strategy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aspire-test-strategy
Source: https://github.com/microcks/microcks-aspire/tree/main/.github/skills/aspire-test-strategy
Command: npx skills add https://github.com/microcks/microcks-aspire --skill aspire-test-strategy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams decide between lightweight builder tests and full integration tests to optimize test execution time in Aspire projects.

Core Features & Use Cases

  • Builder tests verify configuration without starting containers to deliver rapid feedback
  • Integration tests validate runtime behavior with containers to ensure end-to-end reliability
  • Decision guidance provides a structured matrix for choosing between approaches in new or existing test suites
  • Use Case: When starting a new Aspire module, decide the fastest valid testing approach, then layer in integration tests only for runtime validation

Quick Start

Ask Aspire to recommend a test strategy for a new module: builder tests for quick checks and integration tests for runtime validation.

Frequently Asked Questions about aspire-test-strategy

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

FAQPage Schema
What is the difference between builder tests and integration tests in .NET Aspire?

Choose builder tests in Aspire when you need to verify configuration quickly without the overhead of containers, and layer in integration tests only when you must validate runtime behavior and end-to-end reliability.

How do I optimize test execution time for Aspire projects?

Use builder tests to validate Aspire configuration without starting containers, delivering rapid feedback, then apply integration tests with full container startup only for runtime validation to optimize test execution time.

When should I use integration tests instead of builder tests in Aspire?

Use integration tests instead of builder tests in Aspire when you must validate runtime behavior with full container startup to ensure end-to-end reliability, as builder tests only verify configuration without containers.

Does this test strategy work for optimizing existing test suites in Aspire?

Yes, the test strategy applies to optimizing existing test suites in Aspire by enforcing a decision matrix that prioritizes the lightest approach validating the requirement across both builder and integration test patterns.

What are the limitations of using builder tests in .NET Aspire?

Builder tests in .NET Aspire cannot validate runtime behavior or end-to-end reliability because they bypass container startup, meaning you must layer in integration tests to achieve full runtime validation.