Add -setup, a command line argument.

This commit is contained in:
Francis ANDRE
2018-05-19 15:04:59 +02:00
parent 8951b90bbe
commit 904b0061eb
4 changed files with 32 additions and 1 deletions

View File

@@ -110,7 +110,10 @@ void TestCase::run(TestResult *result)
{
result->startTest(this);
setUp();
if (_setup.size() > 0)
setUp(_setup);
else
setUp();
try
{
runTest();