Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot debug unit tests with resharper testrunner

I'm trying to debug a unit test with the resharper testrunner but it's not working. Before my breakpoint is hit Visual Studio pops up a message box "There is no source code available for the current location." If I press OK it says LoadFromContextException.

Ideas anyone?

like image 325
dornbraek Avatar asked Nov 15 '09 13:11

dornbraek


People also ask

How to Run unit tests with ReSharper?

Ctrl+U R / Debug Unit Tests. Ctrl+U D on the toolbar. To run all tests in the session, click Run Current Session. Ctrl+U Y on the toolbar or alternatively, choose ReSharper | Unit Tests | Run Current Session from the main menu.

How do I open Unit Test Explorer ReSharper?

In the Unit Test Explorer window, select tests/test classes for the new session and choose Create New Session. from the context menu or press Ctrl+U N . In the main menu, choose ReSharper | Unit Tests | Create New Session or press Ctrl+U N .

Does ReSharper include dotCover?

With JetBrains dotCover (which is also available with the ReSharper Ultimate license), you can easily discover the degree to which the code of your solution is covered with unit tests.


1 Answers

Make sure you haven't changed the exception settings in Visual Studio: Debug -> Exceptions. Uncheck Thrown for Managed Debugging Assistants. This should fix the problem.

like image 138
Dala Avatar answered Nov 08 '22 22:11

Dala