CppUnit project page FAQ CppUnit home page

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

BriefTestProgressListener Class Reference
[Tracking test execution]

TestListener that prints the name of each test before running it. More...

#include <BriefTestProgressListener.h>

Inheritance diagram for BriefTestProgressListener:

Inheritance graph
[legend]
Collaboration diagram for BriefTestProgressListener:

Collaboration graph
[legend]
List of all members.

Public Methods

 BriefTestProgressListener ()
virtual ~BriefTestProgressListener ()
 Destructor. More...

void startTest (Test *test)
 Called when just before a TestCase is run. More...

void addFailure (const TestFailure &failure)
 Called when a failure occurs while running a test. More...

void endTest (Test *test)
 Called just after a TestCase was run (even if a failure occured). More...


Private Methods

 BriefTestProgressListener (const BriefTestProgressListener &copy)
 Prevents the use of the copy constructor. More...

void operator= (const BriefTestProgressListener &copy)
 Prevents the use of the copy operator. More...


Private Attributes

bool m_lastTestFailed

Detailed Description

TestListener that prints the name of each test before running it.


Constructor & Destructor Documentation

CPPUNIT_NS_BEGIN BriefTestProgressListener::BriefTestProgressListener  
 

Constructs a BriefTestProgressListener object.

BriefTestProgressListener::~BriefTestProgressListener   [virtual]
 

Destructor.

BriefTestProgressListener::BriefTestProgressListener const BriefTestProgressListener &    copy [private]
 

Prevents the use of the copy constructor.


Member Function Documentation

void BriefTestProgressListener::addFailure const TestFailure   failure [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.

void BriefTestProgressListener::endTest Test   test [virtual]
 

Called just after a TestCase was run (even if a failure occured).

Reimplemented from TestListener.

void BriefTestProgressListener::operator= const BriefTestProgressListener &    copy [private]
 

Prevents the use of the copy operator.

void BriefTestProgressListener::startTest Test   test [virtual]
 

Called when just before a TestCase is run.

Reimplemented from TestListener.


Member Data Documentation

bool BriefTestProgressListener::m_lastTestFailed [private]
 


The documentation for this class was generated from the following files:
SourceForge Logo hosts this site. Send comments to:
CppUnit Developers