Visual Studio - confirmation does not stop on failure

Just moved from VS2010 Professional to Premium.

When I am in a failed Assert using MSTEST, it no longer stops in the debugger (this leads to a correct failure in the test results)

Problem: How to make the debugger stop on assert failure when running tests

enter image description here

+8
visual-studio visual-studio-2010 mstest
source share
2 answers

To do this, you will need to do the following

  • Disable only my code: Tools → Options → Debugger. Uncheck "Include only my code"
  • Enable Break on throw: Debug -> Exceptions. Check thrown for CLR exceptions.
+8
source share

I saw this before when I ran failed tests with (CTRL + R, F), which just ran failed tests, where (CTRL + R, CTRL + F) debugs the tests and aborts when assert is not working. Let me know if this helps.

+1
source share

All Articles