From d448f15c5062773db697713d7e025ae5e2a2da05 Mon Sep 17 00:00:00 2001 From: meus Date: Sun, 2 Sep 2007 21:59:48 +0000 Subject: [PATCH] added -help flag to testrunner --- tests/run.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/run.php b/tests/run.php index 1f02b384d..8d5b188f5 100644 --- a/tests/run.php +++ b/tests/run.php @@ -464,6 +464,18 @@ if(isset($options["filter"])){ $filter = $options["filter"]; } +if (isset($options["help"])) { + echo "Doctrine test runner help\n"; + echo "===========================\n"; + echo " To run all tests simply run this script without arguments. \n"; + echo "\n Flags:\n"; + echo " -coverage will generate coverage report data that can be viewed with the cc.php script in this folder. NB! This takes time. You need xdebug to run this\n"; + echo " -group Use this option to run just a group of tests or tests with a given classname. Groups are currently defined as the variable name they are called in this script. \n"; + echo " - filter case insensitive strings that will be applied to the className of the tests. A test_classname must contain all of these strings to be run\n"; + echo "\nAvailable groups:\n tickets\n"; + die(); +} + if (isset($options["coverage"])) { xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE); $testGroup->run($reporter, $filter);