fixing run.php to alert if testing with invalid group
This commit is contained in:
parent
75f2364ed6
commit
44ad5cb1d3
@ -430,9 +430,12 @@ if(isset($argv[0]) && $argv[0] == "coverage"){
|
|||||||
$coverage = true;
|
$coverage = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( ! empty($argv)){
|
if( ! empty($argv)) {
|
||||||
$testGroup = new GroupTest("Custom");
|
$testGroup = new GroupTest("Custom");
|
||||||
foreach($argv as $group){
|
foreach($argv as $group) {
|
||||||
|
if( ! isset($$group)) {
|
||||||
|
die($group . " is not a valid group of tests\n");
|
||||||
|
}
|
||||||
$testGroup->addTestCase($$group);
|
$testGroup->addTestCase($$group);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user