When I debug a normal application and assert()
happens, I get the usual error window which allows me to stop execution and analyze call stack, local variables etc, which is very convenient:
However when I am running a Google Test unit test, assertions never trigger the debugger. Instead I get this error text in cmd window:
Assertion failed: indexMap.size() == points.size(), file test.cpp, line 220
Press any key to continue . . .
Which is not nearly as helpful. I am pretty sure gtest messes up asserts somehow and prevents creation of the error window. Is there a way to have traditional assert behavior when I'm running unit tests?