mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 07:25:51 +00:00
Fix summary stats for unit test results
This commit is contained in:
@@ -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 ());
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user