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