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

SetUpTestCase & TearDownTestCase are called multiple times per test case #6

Open
ftrofin opened this issue Apr 1, 2016 · 1 comment

Comments

@ftrofin
Copy link

ftrofin commented Apr 1, 2016

Because each test method is registered separately, when I want to run a whole test case from the Test Navigator, multiple calls to RUN_ALL_TESTS() will be made (one for each test in the test case). This has the undesirable effect that SetUpTestCase & TearDownTestCase are now broken, instead of being called once per test case, they are called once per test method (just like SetUp/TearDown). I don't know how to fix this, otherwise I would have created a pull request :-)

The gtest filter allows using a test case name as a valid filter and has the desired result - runs all the enabled tests in that case. The problem I couldn't figure out is how to create a selector for the test case itself (as opposed to individual methods) that is invoked when I click the "play" arrow in the Test Navigator on the test case.

@mbhaskar98
Copy link

#11

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

2 participants