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:
Pierre Goiffon
2021-08-05 15:21:27 +02:00
parent 3139628dd8
commit 56a4fb0b42

View File

@@ -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)