c++ - Is there a gtest equivalent for fixture-level setup/teardown? -


so, know there's "literally" fixtures gtest, constructor/destructor , setup/teardown functions execute after each test rather after entire set of tests in fixture.

i can think of ways of hacking around this, there built-in support i'm not finding?

you can define static methods setuptestcase , teardowntestcase in test fixture class. more information on in googletest wiki.

be careful spelling of these static method names.


Comments

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -