1 #ifndef __cxxtest__YesNoRunner_h__
2 #define __cxxtest__YesNoRunner_h__
4 //
5 // The YesNoRunner is a simple TestListener that
6 // just returns true iff all tests passed.
7 //
9 #include <cxxtest/TestRunner.h>
10 #include <cxxtest/TestListener.h>
12 namespace CxxTest
13 {
14 class YesNoRunner : public TestListener
15 {
16 public:
17 YesNoRunner()
18 {
19 }
21 int run()
22 {
23 TestRunner::runAllTests( *this );
24 return tracker().failedTests();
25 }
26 };
27 }
29 #endif // __cxxtest__YesNoRunner_h__