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>
|
|
|
|
|
|
|
|
class CppUnit::TestResult;
|
|
|
|
|
|
|
|
//! 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:
|
2004-02-17 22:57:58 +03:00
|
|
|
BTestSuite( string name = "" );
|
2002-07-15 10:51:57 +04:00
|
|
|
virtual ~BTestSuite();
|
|
|
|
|
|
|
|
virtual void run( CppUnit::TestResult *result );
|
|
|
|
virtual int countTestCases() const;
|
2004-02-17 22:57:58 +03:00
|
|
|
virtual string getName() const;
|
|
|
|
virtual string toString() const;
|
2002-07-15 10:51:57 +04:00
|
|
|
|
2004-02-17 22:57:58 +03:00
|
|
|
virtual void addTest(string name, CppUnit::Test *test);
|
2002-07-15 10:51:57 +04:00
|
|
|
virtual void deleteContents();
|
|
|
|
|
2004-02-17 22:57:58 +03:00
|
|
|
const map<string, CppUnit::Test*> &getTests() const;
|
2002-07-15 10:51:57 +04:00
|
|
|
|
|
|
|
protected:
|
2004-02-17 22:57:58 +03:00
|
|
|
map<string, CppUnit::Test*> fTests;
|
|
|
|
const string fName;
|
2002-07-15 10:51:57 +04:00
|
|
|
|
|
|
|
private:
|
|
|
|
BTestSuite(const BTestSuite &other);
|
|
|
|
BTestSuite& operator=(const BTestSuite &other);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _beos_test_listener_h_
|