added -help flag to testrunner
This commit is contained in:
parent
1b23da2bd7
commit
d448f15c50
@ -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 <groupName1> <groupName2> <className1> 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 <string1> <string2> 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user