dotnet / dotnet/aspnetcore

Add Server Stack Traces in Aspnetcore Integration Tests (when test client errors)

Open
#48,830 7 comments 0 reactions 0 assignees View on GitHub
area-networking
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

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.

When running integration tests we can see the client errors in xunit/visualstudio, but not the server side error stacktrace, to do that, debugging is needed.

### Describe the solution you'd like

would be super cool if somehow it would possible to access to the server side stacktrace when running integration tests for aspnetcore apps, to avoid debugging for a 500.

Instead of seeing just 500 error, we would like to know the stack trace and the exception of the server, or in general, inspect the stack trace of the server if it was somehow possible...

### Additional context

Aspnetcore integration testing in latest NET : https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-7.0

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.