When a test causes a StackOverflowException
what is the best way to determine which test that failed?
I'm working on a fairly large project in Visual Studio. There are ~4300 tests. At least one of them is causing a StackOverflowException
. No test show up as failing, all I get is a message in the Output pane saying:
The active test run was aborted. Reason: Process is terminating due to StackOverflowException.
I've been in this situation before and resolved it by selecting a bunch of tests, ran them, and repeated until I could finally determine which test that caused the exception.
Is there a better way? Maybe it's possible to find out which tests that were running when the exception occurred?