dashboard-testing

Installation
SKILL.md

Aspire Dashboard Testing

This skill provides patterns and practices for writing tests for the Aspire Dashboard. There are two test projects depending on whether the code under test uses Blazor types.

Test Project Selection

Project Location Use When
Aspire.Dashboard.Tests tests/Aspire.Dashboard.Tests/ Testing code that does not use Blazor types (models, helpers, utils, OTLP services, middleware)
Aspire.Dashboard.Components.Tests tests/Aspire.Dashboard.Components.Tests/ Testing code that does use Blazor types (pages, components, controls). Uses bUnit for in-memory rendering

Dashboard Source Code

The dashboard source code is in src/Aspire.Dashboard/. Key subdirectories:

  • Components/ — Blazor components (pages, controls, layout) → test in Components.Tests
  • Model/ — View models, data models, helpers → test in Dashboard.Tests
  • Otlp/ — OpenTelemetry protocol handling → test in Dashboard.Tests
  • Utils/ — Utility and helper classes → test in Dashboard.Tests
Related skills

More from microsoft/aspire

Installs
1
GitHub Stars
5.9K
First Seen
8 days ago