CppUnit project page FAQ

TextTestProgressListener Class Reference

TestListener that show the status of each TestCase test result. More...

#include <TextTestProgressListener.h>

Inheritance diagram for TextTestProgressListener:
Collaboration diagram for TextTestProgressListener:

Public Member Functions

 TextTestProgressListener ()
 
virtual ~TextTestProgressListener ()
 Destructor.
 
void startTest (Test *test)
 Called when just before a TestCase is run.
 
void addFailure (const TestFailure &failure)
 Called when a failure occurs while running a test.
 
void endTestRun (Test *test, TestResult *eventManager)
 Called by a TestRunner after running the test.
 
- Public Member Functions inherited from TestListener
virtual ~TestListener ()
 
virtual void endTest (Test *)
 Called just after a TestCase was run (even if a failure occured).
 
virtual void startSuite (Test *)
 Called by a TestComposite just before running its child tests.
 
virtual void endSuite (Test *)
 Called by a TestComposite after running its child tests.
 
virtual void startTestRun (Test *, TestResult *)
 Called by a TestRunner before running the test.
 

Private Member Functions

 TextTestProgressListener (const TextTestProgressListener &copy)
 Prevents the use of the copy constructor.
 
void operator= (const TextTestProgressListener &copy)
 Prevents the use of the copy operator.
 

Detailed Description

TestListener that show the status of each TestCase test result.

Constructor & Destructor Documentation

◆ TextTestProgressListener() [1/2]

CPPUNIT_NS_BEGIN TextTestProgressListener::TextTestProgressListener ( )

Constructs a TextTestProgressListener object.

◆ ~TextTestProgressListener()

TextTestProgressListener::~TextTestProgressListener ( )
virtual

Destructor.

◆ TextTestProgressListener() [2/2]

TextTestProgressListener::TextTestProgressListener ( const TextTestProgressListener & copy)
private

Prevents the use of the copy constructor.

Member Function Documentation

◆ addFailure()

void TextTestProgressListener::addFailure ( const TestFailure & )
virtual

Called when a failure occurs while running a test.

See also
TestFailure.
Warning
failure is a temporary object that is destroyed after the method call. Use TestFailure::clone() to create a duplicate.

Reimplemented from TestListener.

◆ endTestRun()

void TextTestProgressListener::endTestRun ( Test * ,
TestResult *  )
virtual

Called by a TestRunner after running the test.

TextTestProgressListener use this to emit a line break. You can also use this to do some global uninitialisation.

Parameters
testTest that was run.
eventManagerEvent manager used for the test run.

Reimplemented from TestListener.

◆ operator=()

void TextTestProgressListener::operator= ( const TextTestProgressListener & copy)
private

Prevents the use of the copy operator.

◆ startTest()

void TextTestProgressListener::startTest ( Test * )
virtual

Called when just before a TestCase is run.

Reimplemented from TestListener.


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

Send comments to:
CppUnit Developers