CppUnit project page FAQ CppUnit home page

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

TestSuite.h

Go to the documentation of this file.
00001 #ifndef CPPUNIT_TESTSUITE_H    // -*- C++ -*-
00002 #define CPPUNIT_TESTSUITE_H
00003 
00004 #include <cppunit/Portability.h>
00005 #include <cppunit/Test.h>
00006 #include <vector>
00007 #include <string>
00008 
00009 namespace CppUnit {
00010 
00011 class TestResult;
00012 
00032 class TestSuite : public Test
00033 {
00034 public:
00035     TestSuite       (std::string name = "");
00036     ~TestSuite      ();
00037 
00038     void                run             (TestResult *result);
00039     int                 countTestCases  () const;
00040     std::string         getName         () const;
00041     std::string         toString        () const;
00042 
00043     void                addTest         (Test *test);
00044     const std::vector<Test *> & getTests() const;
00045 
00046     virtual void        deleteContents  ();
00047 
00048 private:
00049     TestSuite (const TestSuite& other);
00050     TestSuite& operator= (const TestSuite& other); 
00051 
00052 private:
00053     std::vector<Test *> m_tests;
00054     const std::string   m_name;
00055 };
00056 
00057 
00058 } // namespace CppUnit
00059 
00060 #endif // CPPUNIT_TESTSUITE_H

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers