mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Allow to run all tests from within the IDE
Just : * configure the config file (test\phpunit.xml.dist) * add runner parameters : --fail-on-risky --exclude-group beforeSetup * specify iTop root as custom working directory
This commit is contained in:
@@ -37,15 +37,16 @@ class ItopTestCase extends TestCase
|
||||
protected function setUp()
|
||||
{
|
||||
@include_once '../approot.inc.php';
|
||||
@include_once '../../approot.inc.php';
|
||||
@include_once '../../approot.inc.php';
|
||||
@include_once '../../../approot.inc.php';
|
||||
@include_once '../../../../approot.inc.php';
|
||||
@include_once '../../../../../approot.inc.php';
|
||||
@include_once '../../../../../../approot.inc.php';
|
||||
@include_once '../../../../../../../approot.inc.php';
|
||||
@include_once '../../../../../../../../approot.inc.php';
|
||||
@include_once getcwd().'/approot.inc.php'; // this is when launching phpunit from within the IDE
|
||||
|
||||
$this->debug("\n----------\n---------- ".$this->getName()."\n----------\n");
|
||||
$this->debug("\n----------\n---------- ".$this->getName()."\n----------\n");
|
||||
}
|
||||
|
||||
protected function debug($sMsg)
|
||||
|
||||
Reference in New Issue
Block a user