2 //We want to be able to run one test AND many tests
3 if (! defined('CODENDI_RUNNER')) {
4 define('CODENDI_RUNNER', __FILE__);
5 require_once('../../../codendi_tools/tests/CodendiReporter.class.php');
8 require_once('../../../codendi_tools/tests/simpletest/unit_tester.php');
9 require_once('../../../codendi_tools/tests/simpletest/mock_objects.php');
11 //We define a group of test
12 class HudsonGroupTest extends GroupTest {
13 function HudsonGroupTest($name = 'All Hudson Plugin tests') {
14 $this->GroupTest($name);
16 $this->addTestFile(dirname(__FILE__).'/HudsonJobTest.php');
17 $this->addTestFile(dirname(__FILE__).'/HudsonTestResultTest.php');
18 $this->addTestFile(dirname(__FILE__).'/HudsonBuildTest.php');
22 if (CODENDI_RUNNER === __FILE__) {
23 $test =& new HudsonGroupTest();
24 $test->run(new CodendiReporter());