dashboard-testing

Test Aspire Dashboard models and Blazor components with xUnit and bUnit.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/sast-playground/aspire --skill dashboard-testing-sast-playground
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dashboard-testing
Source: https://github.com/sast-playground/aspire/tree/main/.github/skills/dashboard-testing
Command: npx skills add https://github.com/sast-playground/aspire --skill dashboard-testing-sast-playground

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires xunit, bunit, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of writing effective tests for the Aspire Dashboard, providing detailed guidance and best practices for both unit tests and Blazor component tests.

Core Features & Use Cases

  • Unit Testing: Offers comprehensive test patterns for models, helpers, utilities, middleware, and services that do not rely on Blazor rendering.
  • Blazor Component Testing: Utilizes bUnit for in-memory rendering of Blazor components, enabling precise testing of pages and controls.
  • Use Case: When developing or updating the Aspire Dashboard, this Skill helps to ensure the reliability and quality of the application through robust testing practices.

Quick Start

Run the 'dashboard-testing' skill to review the guidelines for testing Aspire Dashboard components and models.

Frequently Asked Questions about dashboard-testing

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

FAQPage Schema
How do I test Blazor components in the Aspire Dashboard?

To unit test Aspire Dashboard models and services, use xUnit to apply comprehensive test patterns. This covers utilities, middleware, and helpers that do not rely on Blazor rendering.

Do I need xUnit and bUnit to run Aspire Dashboard tests?

Yes, xUnit and bUnit are required dependencies. xUnit handles non-Blazor unit tests for models and helpers, while bUnit provides the in-memory rendering needed for Blazor component testing.

What is the best way to automate Aspire Dashboard testing for CI/CD pipelines?

The best way to automate Aspire Dashboard testing for CI/CD pipelines is to implement robust unit and Blazor component tests using xUnit and bUnit. This ensures application reliability and quality during continuous deployment.

Can I test Aspire Dashboard middleware and helpers without Blazor rendering?

Yes, you can test middleware and helpers without Blazor rendering by using xUnit. It provides comprehensive patterns specifically for testing application logic, utilities, and services independently.

Does bUnit work with Aspire Dashboard pages and controls?

Yes, bUnit works with Aspire Dashboard pages and controls by enabling in-memory rendering of Blazor components. This allows you to precisely test UI logic and interactions without launching a browser host.