Tests: allow execution of RouterTest alone, fix tool to execute each test class separately

This commit is contained in:
Romain Quetiez
2023-08-18 08:44:54 +02:00
parent d92d2b5e9e
commit 0f8e87e001
2 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
* This is to ensure that test class are still independant from each other, after a rework of ItopTestCase, for instance.
*/
const PHP_EXE = 'php';
const ITOP_ROOT = __DIR__.'/../../dev-itop';
const ITOP_ROOT = __DIR__.'/../../..';
const ITOP_PHPUNIT = ITOP_ROOT.'/tests/php-unit-tests';
const PHPUNIT_COMMAND = PHP_EXE.' '.ITOP_PHPUNIT.'/vendor/phpunit/phpunit/phpunit';

View File

@@ -8,7 +8,7 @@ namespace Combodo\iTop\Test\UnitTest\Service\Router;
use Combodo\iTop\Service\Router\Exception\RouteNotFoundException;
use Combodo\iTop\Service\Router\Router;
use Combodo\iTop\Test\UnitTest\ItopTestCase;
use Combodo\iTop\Test\UnitTest\ItopDataTestCase;
use utils;
/**
@@ -18,7 +18,7 @@ use utils;
* @since 3.1.0
* @covers \Combodo\iTop\Service\Router\Router
*/
class RouterTest extends ItopTestCase
class RouterTest extends ItopDataTestCase
{
/**
* @inheritDoc