1 #ifndef CPPUNIT_TESTRESULTCOLLECTOR_H 2 #define CPPUNIT_TESTRESULTCOLLECTOR_H 6 #if CPPUNIT_NEED_DLL_DECL 7 #pragma warning( push ) 8 #pragma warning( disable: 4251 4660 ) // X needs to have dll-interface to be used by clients of class Z 35 typedef std::deque<Test *>
Tests;
50 virtual int runTests()
const;
51 virtual int testErrors()
const;
52 virtual int testFailures()
const;
53 virtual int testFailuresTotal()
const;
56 virtual const Tests &tests()
const;
77 #if CPPUNIT_NEED_DLL_DECL 78 #pragma warning( pop ) 82 #endif // CPPUNIT_TESTRESULTCOLLECTOR_H void addFailure(const TestFailure &failure)
Called when a failure occurs while running a test.
Definition: TestSuccessListener.cpp:28
std::deque< TestFailure * > TestFailures
Definition: TestResultCollector.h:34
Base class for all test objects.All test objects should be a subclass of Test. Some test objects...
Definition: Test.h:25
std::deque< Test * > Tests
Definition: TestResultCollector.h:35
int m_testErrors
Definition: TestResultCollector.h:63
Tests m_tests
Definition: TestResultCollector.h:61
Abstract synchronization object (mutex)
Definition: SynchronizedObject.h:27
Record of a failed Test execution.A TestFailure collects a failed test together with the caught excep...
Definition: TestFailure.h:24
virtual void reset()
Definition: TestSuccessListener.cpp:20
#define CPPUNIT_NS_END
Definition: Portability.h:106
Collects test result.A TestResultCollector is a TestListener which collects the results of executing ...
Definition: TestResultCollector.h:31
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:105
TestListener that checks if any test case failed.
Definition: TestSuccessListener.h:14
TestFailures m_failures
Definition: TestResultCollector.h:62
virtual void startTest(Test *)
Called when just before a TestCase is run.
Definition: TestListener.h:100
void operator=(const SynchronizedObject ©)
Prevents the use of the copy operator.
#define CPPUNIT_API
Definition: CppUnitApi.h:27