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 namespace CppUnit { 10 class TestResult; 11 } 12 13 //! Groups together a set of tests for a given kit. 14 class CPPUNIT_API BTestSuite : public CppUnit::Test { 15 public: 16 BTestSuite(std::string name = ""); 17 virtual ~BTestSuite(); 18 19 virtual void run(CppUnit::TestResult *result); 20 virtual int countTestCases() const; 21 virtual std::string getName() const; 22 virtual std::string toString() const; 23 24 virtual void addTest(std::string name, CppUnit::Test *test); 25 virtual void deleteContents(); 26 27 const std::map<std::string, CppUnit::Test*> &getTests() const; 28 29 protected: 30 std::map<std::string, CppUnit::Test*> fTests; 31 const std::string fName; 32 33 private: 34 BTestSuite(const BTestSuite &other); 35 BTestSuite& operator=(const BTestSuite &other); 36 37 }; 38 39 #endif // _beos_test_listener_h_ 40