#include <TestRunner.h>
Definition at line 17 of file TestRunner.h.
◆ runAllTests() [1/2]
static void CxxTest::TestRunner::runAllTests |
( |
TestListener & |
listener | ) |
|
|
inlinestatic |
Definition at line 20 of file TestRunner.h.
21 {
23 _TS_TRY { TestRunner().runWorld(); }
26 }
#define _TS_LAST_CATCH(b)
void failedTest(const char *file, unsigned line, const char *expression)
void setListener(TestListener *l)
◆ runAllTests() [2/2]
static void CxxTest::TestRunner::runAllTests |
( |
TestListener * |
listener | ) |
|
|
inlinestatic |
Definition at line 28 of file TestRunner.h.
29 {
30 if ( listener ) {
31 listener->warning( __FILE__, __LINE__, "Deprecated; Use runAllTests( TestListener & )" );
33 }
34 }
static void runAllTests(TestListener &listener)
◆ runSuite()
Definition at line 53 of file TestRunner.h.
54 {
55 StateGuard sg;
56
58 if ( sd.setUp() ) {
59 for ( TestDescription *td = sd.firstTest(); td; td = td->next() )
60 if ( td->active() )
62
63 sd.tearDown();
64 }
66 }
void runTest(TestDescription &td)
void enterSuite(const SuiteDescription &sd)
void leaveSuite(const SuiteDescription &sd)
◆ runTest()
Definition at line 68 of file TestRunner.h.
69 {
70 StateGuard sg;
71
73 if ( td.setUp() ) {
74 td.run();
75 td.tearDown();
76 }
78 }
void enterTest(const TestDescription &td)
void leaveTest(const TestDescription &td)
◆ runWorld()
void CxxTest::TestRunner::runWorld |
( |
| ) |
|
|
inlineprivate |
Definition at line 37 of file TestRunner.h.
38 {
39 RealWorldDescription wd;
40 WorldGuard sg;
41
43 if ( wd.setUp() ) {
44 for ( SuiteDescription *sd = wd.firstSuite(); sd; sd = sd->next() )
45 if ( sd->active() )
47
48 wd.tearDown();
49 }
51 }
void runSuite(SuiteDescription &sd)
void leaveWorld(const WorldDescription &wd)
void enterWorld(const WorldDescription &wd)
The documentation for this class was generated from the following file: