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
9namespace CppUnit {
10class TestResult;
11}
12
13//! Groups together a set of tests for a given kit.
14class CPPUNIT_API BTestSuite : public CppUnit::Test {
15public:
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
29protected:
30	std::map<std::string, CppUnit::Test*> fTests;
31	const std::string fName;
32
33private:
34	BTestSuite(const BTestSuite &other);
35	BTestSuite& operator=(const BTestSuite &other);
36
37};
38
39#endif // _beos_test_listener_h_
40