summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/index.php
diff options
context:
space:
mode:
authorwei <>2006-01-06 04:37:22 +0000
committerwei <>2006-01-06 04:37:22 +0000
commit3b11f3555426a50664e130148fa37e18b8098e28 (patch)
treed1bcba66c8d2fc0a7cfbbde92975b9e972fa7aab /tests/FunctionalTests/index.php
parent2d5b96ba9878ec36df7bb2af3493bb771c85b032 (diff)
Diffstat (limited to 'tests/FunctionalTests/index.php')
-rw-r--r--tests/FunctionalTests/index.php15
1 files changed, 12 insertions, 3 deletions
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();