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