4 \brief Declaration of the custom runner allowing start a subset of tests
9 #include <cppunit/TestRunner.h>
13 #pragma warning( disable: 4251 )
14 #pragma warning( disable: 4275 )
19 \brief Implementation of the custom runner allowing start a subset of tests
21 class TestLib_Runner : public CPPUNIT_NS::TestRunner
24 void Add( const std::string& theSubstr );
25 bool Load( const std::string& theConfigFile );
26 void Run( CPPUNIT_NS::TestResult& theController );
29 void GetTests( CPPUNIT_NS::Test* theRoot, std::list<std::string>& theAllowedTests ) const;
30 bool IsAllowed( const std::string& theTestName ) const;
33 std::list<std::string> mySubStrings; ///< the list of substring patterns
37 #pragma warning( default: 4251 )
38 #pragma warning( default: 4275 )