From 56a4fb0b4299b06e282638968b376784bd791776 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Thu, 5 Aug 2021 15:21:27 +0200 Subject: [PATCH] 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 --- test/ItopTestCase.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/ItopTestCase.php b/test/ItopTestCase.php index d4cc07121..d527471d3 100644 --- a/test/ItopTestCase.php +++ b/test/ItopTestCase.php @@ -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)