Skip to content

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

@ftrofin

Description

@ftrofin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions