A Reporter that keeps a list of test results.
More...
#include <utpp.h>
|
std::deque< TestResult > | results |
| Results of all tests.
|
|
int | suite_test_count |
| number of tests in suite
|
|
int | suite_failed_count |
| number of failed tests in suite
|
|
int | suite_failures_count |
| number of failures in suite
|
|
int | suite_time_msec |
| total suite running time in milliseconds
|
|
int | total_test_count |
| total number of tests
|
|
int | total_failed_count |
| total number of failed tests
|
|
int | total_failures_count |
| total number of failures
|
|
int | total_time_msec |
| total running time in milliseconds
|
|
int | suites_count |
| number of suites ran
|
|
bool | trace |
| true if tracing is enabled
|
|
A Reporter that keeps a list of test results.
◆ Clear()
void UnitTest::ReporterDeferred::Clear |
( |
| ) |
|
|
inlineoverridevirtual |
◆ ReportFailure()
void UnitTest::ReporterDeferred::ReportFailure |
( |
const Failure & | failure | ) |
|
|
inlineoverridevirtual |
Add a new failure to current test
- Parameters
-
failure | The failure record |
Reimplemented from UnitTest::Reporter.
◆ SuiteStart()
void UnitTest::ReporterDeferred::SuiteStart |
( |
const TestSuite & | suite | ) |
|
|
inlineoverridevirtual |
Called at the beginning of a new suite.
- Parameters
-
Creates a new TestResult object with an empty test name as a suite start flag. Adds the TestResult object it to the results container.
Reimplemented from UnitTest::Reporter.
◆ TestFinish()
void UnitTest::ReporterDeferred::TestFinish |
( |
const Test & | test | ) |
|
|
inlineoverridevirtual |
Store test runtime when the test finishes
- Parameters
-
test | Test that is about to end |
Reimplemented from UnitTest::Reporter.
◆ TestStart()
void UnitTest::ReporterDeferred::TestStart |
( |
const Test & | test | ) |
|
|
inlineoverridevirtual |
Called at the beginning of a new test.
- Parameters
-
test | Test that is about to start |
Creates a new TestResult object and adds it to the results container
Reimplemented from UnitTest::Reporter.
The documentation for this class was generated from the following file: