Blame include/cppunit/BriefTestProgressListener.h
|
Packit |
8c9aa0 |
#ifndef CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
|
|
Packit |
8c9aa0 |
#define CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
#include <cppunit/TestListener.h>
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
CPPUNIT_NS_BEGIN
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
/*! \brief TestListener that prints the name of each test before running it.
|
|
Packit |
8c9aa0 |
* \ingroup TrackingTestExecution
|
|
Packit |
8c9aa0 |
*/
|
|
Packit |
8c9aa0 |
class CPPUNIT_API BriefTestProgressListener : public TestListener
|
|
Packit |
8c9aa0 |
{
|
|
Packit |
8c9aa0 |
public:
|
|
Packit |
8c9aa0 |
/*! Constructs a BriefTestProgressListener object.
|
|
Packit |
8c9aa0 |
*/
|
|
Packit |
8c9aa0 |
BriefTestProgressListener();
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
/// Destructor.
|
|
Packit |
8c9aa0 |
virtual ~BriefTestProgressListener();
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
void startTest( Test *test );
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
void addFailure( const TestFailure &failure );
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
void endTest( Test *test );
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
private:
|
|
Packit |
8c9aa0 |
/// Prevents the use of the copy constructor.
|
|
Packit |
8c9aa0 |
BriefTestProgressListener( const BriefTestProgressListener © );
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
/// Prevents the use of the copy operator.
|
|
Packit |
8c9aa0 |
void operator =( const BriefTestProgressListener © );
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
private:
|
|
Packit |
8c9aa0 |
bool m_lastTestFailed;
|
|
Packit |
8c9aa0 |
};
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
CPPUNIT_NS_END
|
|
Packit |
8c9aa0 |
|
|
Packit |
8c9aa0 |
#endif // CPPUNIT_BRIEFTESTPROGRESSLISTENER_H
|