define('PHPUnit_MAIN_METHOD', 'AllTests::main');
}
-require_once 'PHPUnit/Framework.php';
+include_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
-class SeleniumTests
+class AllTests
{
public static function main()
{
$suite->addTestFiles(glob("func/Site/*Test.php"));
$suite->addTestFiles(glob("func/Trackers/*Test.php"));
$suite->addTestFiles(glob("func/Tasks/*Test.php"));
+ $suite->addTestFiles(glob("func/Docs/*Test.php"));
$suite->addTestFiles(glob("func/Forums/*Test.php"));
$suite->addTestFiles(glob("func/News/*Test.php"));
-
+ $suite->addTestFiles(glob("func/PluginsBlocks/*Test.php"));
+ $suite->addTestFiles(glob("func/PluginsOnlineHelp/*Test.php"));
+ $suite->addTestFiles(glob("func/PluginsSvnTracker/*Test.php"));
+ $suite->addTestFiles(glob("func/RBAC/*Test.php"));
+ $suite->addTestFiles(glob("func/Search/*Test.php"));
+ $suite->addTestFiles(glob("func/Surveys/*Test.php"));
+
+ // Run any func tests available in the plugins
+ $suite->addTestFiles(glob("../src/plugins/*/tests/func/*Test.php"));
+
return $suite;
}
}