Xunit test does not count as run on stack overflow
Closed this issue · 1 comments
There's nothing we can do about this.
See the documentation on stack overflows:
Starting with the .NET Framework 2.0, you can't catch a
StackOverflowException
object with atry
/catch
block, and the corresponding process is terminated by default. Consequently, you should write your code to detect and prevent a stack overflow. For example, if your app depends on recursion, use a counter or a state condition to terminate the recursive loop. See the Examples section for an illustration of this technique.
We catch all (catchable) exceptions already, as those are how assertion failures are surfaced (and to mark a test as failing if it just happens to throw a random exception). There are just some we can't do anything about and this is one of them.