microsoft / microsoft/aspire

`AddTestProject` with a custom dashboard view

Open
#13,739 0 comments 0 reactions 0 assignees View on GitHub
area-app-testing
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

There are some projects that contain both running projects (web app, web APIs, etc..) and test projects (unit tests, integration tests, etc..).

Adding running projects and/or test projects via `AddXRuntime` is the current (and only) way and they are displayed in the main dashboard. Having information if the project is running/finished/failing, essential links and some basic actions is great but this is not enough for test projects as other information are more important, see the solution.

### Describe the solution you'd like

1. Add a new extension method `AddTestProject` that can reference a test project with the according executable (npm, dotnet, etc..).
2. Create a custom dashboard view specifically for tests that have some information, from most important to least:
1. The execution state: running, succeed, failing, etc.., with a distinction if the task is watching files or not
2. The result of the tests: X tests succeeded, Y tests failed, Z tests skipped
3. A link to the generated code coverage report, if available & if possible
4. Handling live report of 2. if possible
5. (optional) A built-in code coverage report of 3. in the Aspire dashboard

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.