1 #ifndef _beos_test_suite_h_ 2 #define _beos_test_suite_h_ 3 4 #include <BeBuild.h> 5 #include <cppunit/Test.h> 6 #include <map> 7 #include <string> 8 9 class CppUnit::TestResult; 10 11 //! Groups together a set of tests for a given kit. 12 class CPPUNIT_API BTestSuite : public CppUnit::Test { 13 public: 14 BTestSuite( string name = "" ); 15 virtual ~BTestSuite(); 16 17 virtual void run( CppUnit::TestResult *result ); 18 virtual int countTestCases() const; 19 virtual string getName() const; 20 virtual string toString() const; 21 22 virtual void addTest(string name, CppUnit::Test *test); 23 virtual void deleteContents(); 24 25 const map<string, CppUnit::Test*> &getTests() const; 26 27 protected: 28 map<string, CppUnit::Test*> fTests; 29 const string fName; 30 31 private: 32 BTestSuite(const BTestSuite &other); 33 BTestSuite& operator=(const BTestSuite &other); 34 35 }; 36 37 #endif // _beos_test_listener_h_ 38