summaryrefslogtreecommitdiff
path: root/include/cppunit/ui
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2002-07-10 17:50:02 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2002-07-10 17:50:02 +0000
commit85aa074c02154107459755b2a3ddbc0b5767558a (patch)
treef48da462642cd10a74cc836a241b4b8fede53319 /include/cppunit/ui
parentad45759ab7a47c7a7932f7e6be66f3ea106b643b (diff)
downloadcppunit-85aa074c02154107459755b2a3ddbc0b5767558a.tar.gz
Include/cppunit/extensions/AutoRegisterSuite.
include/cppunit/extensions/AutoRegisterSuite.h: * include/cppunit/extensions/Orthodox.h: * include/cppunit/extensions/TestSuiteBuilder.h: * include/cppunit/extensions/TestSuiteFactory.h: * include/cppunit/TestCaller.h: * examples/hierarchy/BoardGameTest.h: * examples/hierarchy/ChessTest.h: replaced usage of 'typename' in template declaration with 'class'. * include/cppunit/ui/text/TestRunner.h: * src/cppunit/TextTestRunner.cpp: updated to use the generic TestRunner. Removed methods runTestByName() and runTest(). Inherits CppUnit::TestRunner. * include/cppunit/extensions/TestSuiteBuilder.h: removed templatized method addTestCallerForException(). It is no longer used since release 1.9.8. * examples/cppunittest/MockTestCase.h * examples/cppunittest/MockTestCase.cpp: removed the usage of 'mutable' keyword.
Diffstat (limited to 'include/cppunit/ui')
-rw-r--r--include/cppunit/ui/text/TestRunner.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/include/cppunit/ui/text/TestRunner.h b/include/cppunit/ui/text/TestRunner.h
index d6244ee..93c7352 100644
--- a/include/cppunit/ui/text/TestRunner.h
+++ b/include/cppunit/ui/text/TestRunner.h
@@ -1,9 +1,12 @@
#ifndef CPPUNIT_UI_TEXT_TESTRUNNER_H
#define CPPUNIT_UI_TEXT_TESTRUNNER_H
+// Notes: this class is implemented in TextTestRunner.cpp.
+
#include <cppunit/Portability.h>
#include <string>
#include <vector>
+#include <cppunit/TestRunner.h>
namespace CppUnit {
@@ -59,20 +62,21 @@ namespace TextUi
*
* \see CompilerOutputter, XmlOutputter, TextOutputter.
*/
-class CPPUNIT_API TestRunner
+class CPPUNIT_API TestRunner : public CppUnit::TestRunner
{
public:
+ // Work around VC++ bug (class has same name as parent)
+ typedef CppUnit::TestRunner SuperClass;
+
TestRunner( Outputter *outputter =NULL );
virtual ~TestRunner();
- bool run( std::string testName ="",
+ bool run( std::string testPath ="",
bool doWait = false,
bool doPrintResult = true,
bool doPrintProgress = true );
- void addTest( Test *test );
-
void setOutputter( Outputter *outputter );
TestResultCollector &result() const;
@@ -80,14 +84,9 @@ public:
TestResult &eventManager() const;
protected:
- virtual bool runTest( Test *test,
- bool doPrintProgress );
- virtual bool runTestByName( std::string testName,
- bool printProgress );
virtual void wait( bool doWait );
virtual void printResult( bool doPrintResult );
- TestSuite *m_suite;
TestResultCollector *m_result;
TestResult *m_eventManager;
Outputter *m_outputter;