[Cppunit-cvs] cppunit2/include/cpput testrunner.h,NONE,1.1
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2004-11-15 08:30:50
|
Update of /cvsroot/cppunit/cppunit2/include/cpput In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1226/include/cpput Added Files: testrunner.h Log Message: * basic TestRunner implementation for use with OpenTest TestDriver. --- NEW FILE: testrunner.h --- #ifndef CPPUT_TESTRUNNER_H_INCLUDED # define CPPUT_TESTRUNNER_H_INCLUDED # include <cpput/forwards.h> # include <opentest/testrunner.h> # include <map> namespace CppUT { class CPPUT_API TestRunner : public OpenTest::TestRunner { public: typedef std::map<OpenTest::TestId,Test *> DeclaredTests; TestRunner(); void setRootSuite( const AbstractTestSuitePtr &suite ); AbstractTestSuitePtr rootSuite() const; public: // overridden from OpenTest::TestRunner void declareTests( OpenTest::TestDeclarator &declarator ); void runTests( const OpenTest::TestPlan &testPlan, OpenTest::TestRunTracker &tracker, const OpenTest::Properties &configuration ); private: class TestDeclaratorVisitor; class TestTrackerListener; AbstractTestSuitePtr suite_; DeclaredTests tests_; }; } // namespace CppUT #endif // CPPUT_TESTRUNNER_H_INCLUDED |