To reproduce, I'm using the following NUnit test fixture:
[TestFixture]
public class Temp
{
[Test]
public void StackOverflowTest()
{
StackOverflowTest();
}
}
Note: you'll have to run it once with the self-referencing call commented out for NCrunch to show the context menus.
When running 'debug covering test in new runner' with 'use hosted task runner' set to True, I get almost no feedback, with control returning back to Visual Studio in edit mode.
With 'use hosted task runner' set to False, the VS debugger does pause when the exception occurs, but is unable to determine the stack location, as seen in this screenshot:
http://imgur.com/rwAbB For comparision, what I would love to see is that the full stack and source code location of the exception is available in the VS debugger. This is the behavior seen when I use ReSharper's unit test runner in debug mode for the same test, as seen in this screenshot:
http://imgur.com/IGetd
Of course, I have no insight as to how ReSharper does this, or even how you do it, so have absolutely no idea on how to achieve this. :-)
One short-term nice-to-have would be to have the ncrunch test failure message note that a stackoverflow occurred, as this this would help narrow down where to start troubleshooting.
Note: I'm using VS2012 Beta, NCrunch 1.40.0.23b, Resharper 7 Beta, Nunit 2.5.10