Files
haiku-beta6/headers/tools/cppunit/TestSuite.h
T

40 lines
896 B
C++
Raw Normal View History

2002-07-15 06:51:57 +00:00
#ifndef _beos_test_suite_h_
#define _beos_test_suite_h_
#include <BeBuild.h>
2002-07-15 06:51:57 +00:00
#include <cppunit/Test.h>
#include <map>
#include <string>
namespace CppUnit {
class TestResult;
}
2002-07-15 06:51:57 +00:00
//! Groups together a set of tests for a given kit.
class CPPUNIT_API BTestSuite : public CppUnit::Test {
2002-07-15 06:51:57 +00:00
public:
BTestSuite(std::string name = "");
2002-07-15 06:51:57 +00:00
virtual ~BTestSuite();
virtual void run(CppUnit::TestResult *result);
2002-07-15 06:51:57 +00:00
virtual int countTestCases() const;
virtual std::string getName() const;
virtual std::string toString() const;
2002-07-15 06:51:57 +00:00
virtual void addTest(std::string name, CppUnit::Test *test);
2002-07-15 06:51:57 +00:00
virtual void deleteContents();
const std::map<std::string, CppUnit::Test*> &getTests() const;
2002-07-15 06:51:57 +00:00
protected:
std::map<std::string, CppUnit::Test*> fTests;
const std::string fName;
2002-07-15 06:51:57 +00:00
private:
BTestSuite(const BTestSuite &other);
BTestSuite& operator=(const BTestSuite &other);
2002-07-15 06:51:57 +00:00
};
#endif // _beos_test_listener_h_