Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain what the aspire testing framework is for and how it works #2721

Open
davidfowl opened this issue Mar 4, 2025 · 0 comments
Open

Explain what the aspire testing framework is for and how it works #2721

davidfowl opened this issue Mar 4, 2025 · 0 comments
Labels
⌚ Not Triaged Not triaged

Comments

@davidfowl
Copy link
Member

There's lots of confusion as to what the aspire testing support provides. We need to explain what aspire testing is for and when to use it.

dotnet/aspire#7877

Aspire’s testing capabilities are for black box testing your entire distributed application, not for writing unit tests or doing white box integration testing. If you want to run your single project in memory and stub out the database then continue to use web application factory.

If you want to use a real database and talk to your API to make sure data is persisted into the real Postgres database then aspire testing is the way to go.

@dotnetrepoman dotnetrepoman bot added the ⌚ Not Triaged Not triaged label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⌚ Not Triaged Not triaged
Projects
None yet
Development

No branches or pull requests

1 participant