Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

throwing an exception in a testcase seems to pass the test #8

Open
janwilmans opened this issue Aug 2, 2016 · 0 comments
Open

throwing an exception in a testcase seems to pass the test #8

janwilmans opened this issue Aug 2, 2016 · 0 comments

Comments

@janwilmans
Copy link

The test is failing as the logging shows, but the UI checkbox is still marked 'green'

image

TEST(TestCase, Test)
{
EXPECT_EQ(1 + 1, 3);
}

TEST(TestCase, TestException)
{
throw std::exception("test");
}

TEST(DISABLED_TestCase, TestException)
{
throw std::exception("test");
}

int main(int argc, char* argv[])
{
testing::InitGoogleTest(&argc, argv);
testing::InitGoogleTestGui(&argc, argv);

return RUN_ALL_TESTS();

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant