Fix summary stats for unit test results

This commit is contained in:
Vinnie Falco
2013-07-29 14:54:54 -07:00
parent 85284fe10d
commit 4cc28214fc
2 changed files with 4 additions and 1 deletions

View File

@@ -315,7 +315,8 @@ void UnitTests::runTest (UnitTest& test)
{ {
ScopedPointer <UnitTest::Suite> suite (test.run (this).release ()); ScopedPointer <UnitTest::Suite> suite (test.run (this).release ());
m_results->tests += suite->cases.size (); m_results->cases += suite->cases.size ();
m_results->tests += suite->tests;
m_results->failures += suite->failures; m_results->failures += suite->failures;
m_results->suites.add (suite.release ()); m_results->suites.add (suite.release ());

View File

@@ -316,6 +316,7 @@ public:
{ {
Results () Results ()
: whenStarted (Time::getCurrentTime ()) : whenStarted (Time::getCurrentTime ())
, cases (0)
, tests (0) , tests (0)
, failures (0) , failures (0)
{ {
@@ -323,6 +324,7 @@ public:
Time whenStarted; Time whenStarted;
double secondsElapsed; double secondsElapsed;
int cases;
int tests; int tests;
int failures; int failures;