Showing the available testcases when the testsuite shell is run with no params

This commit is contained in:
José Lorenzo Rodríguez Urdaneta 2010-07-13 20:23:45 -04:30
parent ab6e3eecd9
commit 1c08d48652

View file

@ -107,8 +107,14 @@ class TestSuiteShell extends Shell {
$this->out(__('CakePHP Test Shell'));
$this->hr();
$args = $this->parseArgs();
if (empty($args['case'])) {
$this->available();
}
require_once CAKE . 'tests' . DS . 'lib' . DS . 'test_runner.php';
$testCli = new TestRunner($this->parseArgs());
$testCli = new TestRunner($args);
$testCli->run($this->runnerOptions());
}