Make it eaiser to see Application state in tests when debugging DistributedApplicationTestingBuilder #5632
Labels
area-app-testing
Issues pertaining to the APIs in Aspire.Hosting.Testing
Milestone
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
Currently if you are trying to troubleshoot an application state issue in tests run with
DistributedApplicationTestingBuilder
, you have limited information available around the current state of the application (e.g. has one of my resources died early).Describe the solution you'd like
One option could be to do something with a
DebuggerTypeProxy
to provide a view similar to the Resources view on the Aspire dashboard. You could then hover over theapp
variable to get some of the information you'd otherwise get from the dashboard.Another aid could be to add a
WithDashboard
method toDistributedApplicationTestingBuilder
. When this is specified, the dashboard would be spun up allowing you to use the data on the dashboard for debugging. (Although this could get awkward quickly if the dashboard freezes whenever the debugger for the test is paused)Additional context
Note, these suggestions only help with local dev when you can hook up a debugger. These don't help with debugging in CI systems (unless you can repro the same issue locally and debug there).
The text was updated successfully, but these errors were encountered: