mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 16:54:08 +01:00
Better 💎
This commit is contained in:
parent
8c56942b94
commit
e18977e18c
@ -11,6 +11,11 @@ use Deployer\Helper\RecipeTester;
|
||||
|
||||
class ParallelExecutorTest extends RecipeTester
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $recipeFile;
|
||||
|
||||
/**
|
||||
* Load or describe recipe.
|
||||
*
|
||||
@ -18,14 +23,14 @@ class ParallelExecutorTest extends RecipeTester
|
||||
*/
|
||||
protected function loadRecipe()
|
||||
{
|
||||
include __DIR__ . '/Fixture/recipe.php';
|
||||
include $this->recipeFile = __DIR__ . '/../../fixture/recipe.php';
|
||||
}
|
||||
|
||||
public function testParallel()
|
||||
{
|
||||
define('DEPLOYER_BIN', __DIR__ . '/../../../bin/dep');
|
||||
|
||||
$display = $this->exec('test', ['--parallel' => true, '--file' => __DIR__ . '/Fixture/recipe.php']);
|
||||
$display = $this->exec('test', ['--parallel' => true, '--file' => $this->recipeFile]);
|
||||
|
||||
$this->assertContains('Ok', $display);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user