28 #ifndef D_CommandLineTestRunner_H 29 #define D_CommandLineTestRunner_H 31 #include "TestHarness.h" 32 #include "TestOutput.h" 33 #include "CommandLineArguments.h" 34 #include "TestFilter.h" 38 #define DEF_PLUGIN_MEM_LEAK "MemoryLeakPlugin" 39 #define DEF_PLUGIN_SET_POINTER "SetPointerPlugin" 41 class CommandLineTestRunner
44 static int RunAllTests(
int ac,
const char** av);
45 static int RunAllTests(
int ac,
char** av);
47 CommandLineTestRunner(
int ac,
const char** av, TestRegistry* registry);
48 virtual ~CommandLineTestRunner();
50 int runAllTestsMain();
53 virtual TestOutput* createTeamCityOutput();
54 virtual TestOutput* createJUnitOutput(
const SimpleString& packageName);
55 virtual TestOutput* createConsoleOutput();
56 virtual TestOutput* createCompositeOutput(TestOutput* outputOne, TestOutput* outputTwo);
60 CommandLineArguments* arguments_;
61 TestRegistry* registry_;
63 bool parseArguments(TestPlugin*);
65 void initializeTestRun();