From 1c08d48652e6e221cff92014feff12fbe2b4710f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez=20Urdaneta?= Date: Tue, 13 Jul 2010 20:23:45 -0430 Subject: [PATCH] Showing the available testcases when the testsuite shell is run with no params --- cake/console/libs/testsuite.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cake/console/libs/testsuite.php b/cake/console/libs/testsuite.php index c02a4dd00..3b06d48ac 100644 --- a/cake/console/libs/testsuite.php +++ b/cake/console/libs/testsuite.php @@ -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()); } @@ -132,7 +138,7 @@ class TestSuiteShell extends Shell { $title = Inflector::humanize($plugin) . " Test Cases:"; $category = $plugin; } - + if (empty($testCases)) { $this->out(__('No test cases available')); return;