Fix summary stats for unit test results

This commit is contained in:
Vinnie Falco
2013-07-29 14:54:54 -07:00
parent 85f5672280
commit 45f321a3a2
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 ());
m_results->tests += suite->cases.size ();
m_results->cases += suite->cases.size ();
m_results->tests += suite->tests;
m_results->failures += suite->failures;
m_results->suites.add (suite.release ());

View File

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