From 3b11f3555426a50664e130148fa37e18b8098e28 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 6 Jan 2006 04:37:22 +0000 Subject: --- tests/FunctionalTests/index.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'tests/FunctionalTests/index.php') diff --git a/tests/FunctionalTests/index.php b/tests/FunctionalTests/index.php index b2c9e16c..442c4bbf 100644 --- a/tests/FunctionalTests/index.php +++ b/tests/FunctionalTests/index.php @@ -7,10 +7,19 @@ class BrowserTestConfig extends PradoTestConfig //functional test groups public function unit_test_groups() { - $groups['Web/UI'] = realpath($this->tests_directory().'/Web/UI/'); - $groups['Demos'] = realpath($this->tests_directory().'/Demos/'); + $groups = array(); + $this->get_directories($this->tests_directory(),$groups); return $groups; } + + protected function get_directories($base,&$groups) + { + $groups[] = realpath($base); + $dirs = new DirectoryIterator($base); + foreach($dirs as $dir) + if(!$dir->isDot() && $dir->isDir()) + $this->get_directories($dir->getPathName(), $groups); + } } @@ -19,7 +28,7 @@ $server = SimpleSeleniumProxyServer::getInstance($root); $tester = new PradoSimpleTester(new BrowserTestConfig()); $browser_tests = $tester->getTests(); -$browser_tests->run(new SeleniumReporter()); +$browser_tests->run(new SimpleReporter()); $server->handleRequest(); -- cgit v1.2.3