14
votes

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?

1
What is activating your unit tests? What calls them?Nick DeVore
It happens on Right Click -> Run Unit Tests in Solution Explorer as well as when I click the green debug button in the Unit Test Sessions window.Daniel Dyson
Which unit test runner are you using?Grzenio
Is the console window open during execution? Are you writing data out to the console? If not, it won't show up. Do you mean the watch window so you can see the values in your variables?Nick DeVore
You can have different windows open for "Write" mode versus "Debug" mode. Perhaps the console window is truly hidden for debug mode and it simply means you need to show it?Nick DeVore

1 Answers

24
votes

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.