Hi,
I'm testing several testing frameworks, and I'm currently testing this one. One thing I found interesting on some frameworks is the ability to not stop when an exception occurs, so at the end all test can be executed. Nevertheless, I found that Googletest simply stop when it founds an exception during the program execution. The code I'm using is the following:
TEST(FailingTest, DivisionByZero)
{
EXPECT_EQ(1/0, 2/0);
}
It will obviously fail, but I wanted to continue with the remaining tests.
Is there any way to tell the framework to not stop when an exception occur? Any parameter that can be passed to the program? If it is not possible, why? Is there any philosophical reason for this behaviour?
Thanks in advance!
So, I think is a matter of what you want. I think is worth to see Joey's work, although it only works on Windows, it could be offered as a plug-in (if possible, of course), for those who want to prevent the test stop when a fatal signal appear.
Regards