summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/index.php
diff options
context:
space:
mode:
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();