mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +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 ());
|
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 ());
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user