39 testLog <<
"--------------------------------------------------------";
40 testLog << QString(
"Test: %1").arg(pTest->testName());
41 testLog <<
"--------------------------------------------------------";
46 bool bResult = pTest->executeTest();
49 int executionTime = time.elapsed();
51 QString resultString =
"Result: %1. Time: %2 ms";
52 resultString = resultString.arg(bResult ?
"SUCCESS" :
"FAIL").arg(executionTime);
54 testLog <<
"--------------------------------------------------------";
55 testLog << resultString;
56 testLog <<
"--------------------------------------------------------";
Base class for Test Units.
void clearCounters()
Clears success/fail counters.
void executeTest(TestUnitBase *pTest)