Move slow integration test to separate fixtures directory and add to slow group
parent
c37dce0bb3
commit
c0236c5ed2
|
@ -184,6 +184,15 @@ class InstallerTest extends TestCase
|
||||||
return $cases;
|
return $cases;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group slow
|
||||||
|
* @dataProvider getSlowIntegrationTests
|
||||||
|
*/
|
||||||
|
public function testSlowIntegration($file, $message, $condition, $composerConfig, $lock, $installed, $run, $expectLock, $expectInstalled, $expectOutput, $expect, $expectResult)
|
||||||
|
{
|
||||||
|
return $this->testIntegration($file, $message, $condition, $composerConfig, $lock, $installed, $run, $expectLock, $expectInstalled, $expectOutput, $expect, $expectResult);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider getIntegrationTests
|
* @dataProvider getIntegrationTests
|
||||||
*/
|
*/
|
||||||
|
@ -379,9 +388,19 @@ class InstallerTest extends TestCase
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getSlowIntegrationTests()
|
||||||
|
{
|
||||||
|
return $this->loadIntegrationTests('installer-slow/');
|
||||||
|
}
|
||||||
|
|
||||||
public function getIntegrationTests()
|
public function getIntegrationTests()
|
||||||
{
|
{
|
||||||
$fixturesDir = realpath(__DIR__.'/Fixtures/installer/');
|
return $this->loadIntegrationTests('installer/');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function loadIntegrationTests($path)
|
||||||
|
{
|
||||||
|
$fixturesDir = realpath(__DIR__.'/Fixtures/'.$path);
|
||||||
$tests = array();
|
$tests = array();
|
||||||
|
|
||||||
foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($fixturesDir), \RecursiveIteratorIterator::LEAVES_ONLY) as $file) {
|
foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($fixturesDir), \RecursiveIteratorIterator::LEAVES_ONLY) as $file) {
|
||||||
|
|
Loading…
Reference in New Issue