N°4624 Restore processIsolation on tests which actually need it

Warning, one symptom was having the CI returning an empty phpunit.results.xml !!
This commit is contained in:
Pierre Goiffon
2022-01-07 17:16:19 +01:00
parent ddb8378fe6
commit e530cbb4f2
9 changed files with 36 additions and 4 deletions

View File

@@ -13,6 +13,11 @@ use utils;
* @package Combodo\iTop\Test\UnitTest\Core
*/
/**
* @runTestsInSeparateProcesses
* @preserveGlobalState disabled
* @backupGlobals disabled
*/
class CMDBSourceTest extends ItopTestCase
{
protected function setUp()

View File

@@ -23,7 +23,13 @@ namespace Combodo\iTop\Test\UnitTest\Core;
use Combodo\iTop\Test\UnitTest\ItopTestCase;
use ConfigPlaceholdersResolver;
use PHPUnit\Framework\TestCase;
/**
* @runTestsInSeparateProcesses
* @preserveGlobalState disabled
* @backupGlobals disabled
*/
class ConfigPlaceholdersResolverTest extends ItopTestCase
{
protected function setUp()
@@ -31,7 +37,6 @@ class ConfigPlaceholdersResolverTest extends ItopTestCase
parent::setUp();
require_once (APPROOT.'core/config.class.inc.php');
}
/**
* @dataProvider providerResolve
*/

View File

@@ -23,7 +23,13 @@ namespace Combodo\iTop\Test\UnitTest\Core;
use Combodo\iTop\Test\UnitTest\ItopTestCase;
use Config;
use PHPUnit\Framework\TestCase;
/**
* @runTestsInSeparateProcesses
* @preserveGlobalState disabled
* @backupGlobals disabled
*/
class ConfigTest extends ItopTestCase
{
protected function setUp()

View File

@@ -27,10 +27,16 @@
namespace Combodo\iTop\Test\UnitTest\Core;
use Combodo\iTop\Test\UnitTest\ItopTestCase;
use PHPUnit\Framework\TestCase;
define('UNIT_MAX_CACHE_FILES', 10);
/**
* @runTestsInSeparateProcesses
* @preserveGlobalState disabled
* @backupGlobals disabled
*/
class apcEmulationTest extends ItopTestCase
{

View File

@@ -31,6 +31,11 @@ use Dict;
use Exception;
/**
* @runTestsInSeparateProcesses
* @preserveGlobalState disabled
* @backupGlobals disabled
*/
class dictTest extends ItopTestCase
{
private $sEnvName;

View File

@@ -23,11 +23,11 @@ use iTopDesignFormat;
* @group itop-community
*
* @covers iTopDesignFormat
*
* @package Combodo\iTop\Test\UnitTest\Setup
*/
class iTopModulesPhpVersionIntegrationTest extends ItopTestCase
{
/**
* Verify if the datamodel.*.xml files refer to the current itop version
* This is an integration test
@@ -86,5 +86,4 @@ class iTopModulesPhpVersionIntegrationTest extends ItopTestCase
return $aTestCases;
}
}

View File

@@ -24,6 +24,8 @@ use iTopDesignFormat;
* @group itop-community
*
* @covers iTopDesignFormat
*
* @package Combodo\iTop\Test\UnitTest\Setup
*/
class iTopModulesXmlVersionIntegrationTest extends ItopTestCase
{

View File

@@ -12,6 +12,8 @@ use PHPUnit\Exception;
* Ticket 3053 - Check XML conversion methods
*
* @covers iTopDesignFormat
*
* @package Combodo\iTop\Test\UnitTest\Setup
*/
class TestForITopDesignFormatClass extends ItopTestCase
{

View File

@@ -11,6 +11,8 @@ use iTopDesignFormat;
* Ticket 3061 - Automatically check the installation.xml consistency
*
* @covers iTopDesignFormat
*
* @package Combodo\iTop\Test\UnitTest\Setup
*/
class iTopModuleXmlInstallationChecklistTest extends ItopTestCase
{