Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unit Test Sessions Window Closes when debugging

When I select an NUnit test in the Unit Test Sessions window and click debug, the window disappears. My breakpoints are hit, but if I hit F5, the Unit Test Sessions window does not return until the test returns a result or I stop the debugging session. This is preventing me from viewing any console output during tests. Any ideas?

like image 449
Daniel Dyson Avatar asked May 26 '10 15:05

Daniel Dyson


People also ask

Can you debug a unit test?

Debug and analyze unit tests with Test ExplorerYou can use Test Explorer to start a debugging session for your tests. Stepping through your code with the Visual Studio debugger seamlessly takes you back and forth between the unit tests and the project under test.

How do I debug a chrome unit test?

If chrome://inspect is not up, start chrome://inspect in a new tab/window. If chrome://inspect is up without the debugger window, click one of the two links to inspect. There might be leftover debugger windows.

How do you unit test a session?

Access unit test sessions Unit test sessions management is done in the Unit Test Sessions window. To open this window, press Ctrl+Alt+T or choose ReSharper | Windows | Unit Test Sessions from the main menu.


1 Answers

It turned out to be the Resharper Test Runner that was mis-behaving. The answer was to reopen the window using ReSharper -> Windows -> Unit Test Sessions or Ctrl + Alt + R if using the IntelliJ shortcuts.

like image 171
Daniel Dyson Avatar answered Sep 27 '22 22:09

Daniel Dyson