CppUnit - The Unit Testing Library

CppUnit project page | FAQ

BriefTestProgressListener.h
Go to the documentation of this file.
1#ifndef CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
2#define CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
3
4#include <cppunit/TestListener.h>
5
6
7 CPPUNIT_NS_BEGIN
8
9
13 class CPPUNIT_API BriefTestProgressListener : public TestListener
14{
15public:
18 BriefTestProgressListener();
19
21 virtual ~BriefTestProgressListener();
22
23 void startTest( Test *test );
24
25 void addFailure( const TestFailure &failure );
26
27 void endTest( Test *test );
28
29private:
31 BriefTestProgressListener( const BriefTestProgressListener &copy );
32
34 void operator =( const BriefTestProgressListener &copy );
35
36private:
37 bool m_lastTestFailed;
38};
39
40
41 CPPUNIT_NS_END
42
43#endif // CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
CPPUNIT_API
#define CPPUNIT_API
Definition CppUnitApi.h:27
CPPUNIT_NS_END
#define CPPUNIT_NS_END
Definition Portability.h:106
CPPUNIT_NS_BEGIN
#define CPPUNIT_NS_BEGIN
Definition Portability.h:105
TestListener.h
BriefTestProgressListener::BriefTestProgressListener
BriefTestProgressListener()
Definition BriefTestProgressListener.cpp:10
BriefTestProgressListener::BriefTestProgressListener
BriefTestProgressListener(const BriefTestProgressListener &copy)
Prevents the use of the copy constructor.
BriefTestProgressListener::m_lastTestFailed
bool m_lastTestFailed
Definition BriefTestProgressListener.h:37
TestFailure
Record of a failed Test execution.
Definition TestFailure.h:25
Test
Base class for all test objects.
Definition Test.h:26
TestListener
Listener for test progress and result.
Definition TestListener.h:95
TestListener::addFailure
virtual void addFailure(const TestFailure &)
Called when a failure occurs while running a test.
Definition TestListener.h:107
TestListener::startTest
virtual void startTest(Test *)
Called when just before a TestCase is run.
Definition TestListener.h:100
TestListener::endTest
virtual void endTest(Test *)
Called just after a TestCase was run (even if a failure occured).
Definition TestListener.h:110

| Send comments to: CppUnit Developers