Fix TestSuite::run()

This commit is contained in:
Francis ANDRE 2018-05-21 11:08:37 +02:00
parent ef63822c04
commit 0ca753a481
2 changed files with 7 additions and 0 deletions

View File

@ -72,6 +72,11 @@ protected:
_fixture.get()->setUp();
}
void setUp(const std::vector<std::string>& setup)
{
_fixture.get()->setUp(setup);
}
void tearDown()
{
_fixture.get()->tearDown();

View File

@ -27,6 +27,8 @@ void TestSuite::run(TestResult *result)
break;
Test *test = *it;
if (_setup.size() > 0)
test->addSetup(_setup);
test->run(result);
}
}