UTPP
Loading...
Searching...
No Matches
UnitTest::ReporterDbgout Class Reference

A Reporter that sends messages to debug output. More...

#include <reporter_dbgout.h>

Inheritance diagram for UnitTest::ReporterDbgout:
UnitTest::Reporter

Protected Member Functions

void SuiteStart (const TestSuite &suite) override
 If tracing is enabled, show a suite start message.
 
void TestStart (const Test &test) override
 If tracing is enabled, show a test start message.
 
void TestFinish (const Test &test) override
 If tracing is enabled, show a test finish message.
 
int SuiteFinish (const TestSuite &suite) override
 If tracing is enabled, show a suite finish message.
 
void ReportFailure (const Failure &failure) override
 
int Summary () override
 

Additional Inherited Members

- Public Member Functions inherited from UnitTest::Reporter
void SetTrace (bool on_off)
 Controls test tracing feature.
 
virtual void Clear ()
 Reset all statistics.
 
- Protected Attributes inherited from UnitTest::Reporter
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
 

Detailed Description

A Reporter that sends messages to debug output.

Member Function Documentation

◆ ReportFailure()

void UnitTest::ReporterDbgout::ReportFailure ( const Failure & failure)
inlineoverrideprotectedvirtual

Output to debug output a failure message. If a test is in progress (the normal case) the message includes the name of the test and suite.

Parameters
failure- the failure information (filename, line number and message)

Reimplemented from UnitTest::Reporter.

◆ SuiteFinish()

int UnitTest::ReporterDbgout::SuiteFinish ( const TestSuite & suite)
inlineoverrideprotectedvirtual

If tracing is enabled, show a suite finish message.

Reimplemented from UnitTest::Reporter.

◆ SuiteStart()

void UnitTest::ReporterDbgout::SuiteStart ( const TestSuite & suite)
inlineoverrideprotectedvirtual

If tracing is enabled, show a suite start message.

Reimplemented from UnitTest::Reporter.

◆ Summary()

int UnitTest::ReporterDbgout::Summary ( )
inlineoverrideprotectedvirtual

Prints a test run summary including number of tests, number of failures, running time, etc.

Reimplemented from UnitTest::Reporter.

◆ TestFinish()

void UnitTest::ReporterDbgout::TestFinish ( const Test & test)
inlineoverrideprotectedvirtual

If tracing is enabled, show a test finish message.

Reimplemented from UnitTest::Reporter.

◆ TestStart()

void UnitTest::ReporterDbgout::TestStart ( const Test & test)
inlineoverrideprotectedvirtual

If tracing is enabled, show a test start message.

Reimplemented from UnitTest::Reporter.


The documentation for this class was generated from the following file: