Add support for group to integration test robo command
[MAILPOET-4566]
This commit is contained in:
committed by
Veljko V
parent
68b3b23e3c
commit
08d970a94b
@@ -182,11 +182,11 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
return $this->_exec($command);
|
return $this->_exec($command);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testIntegration(array $opts = ['file' => null, 'xml' => false, 'multisite' => false, 'debug' => false, 'skip-deps' => false]) {
|
public function testIntegration(array $opts = ['file' => null, 'group' => null, 'skip-group' => null, 'xml' => false, 'multisite' => false, 'debug' => false, 'skip-deps' => false]) {
|
||||||
return $this->runTestsInContainer(array_merge($opts, ['test_type' => 'integration']));
|
return $this->runTestsInContainer(array_merge($opts, ['test_type' => 'integration']));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testMultisiteIntegration($opts = ['file' => null, 'xml' => false, 'multisite' => true, 'skip-deps' => false]) {
|
public function testMultisiteIntegration($opts = ['file' => null, 'group' => null, 'skip-group' => null, 'xml' => false, 'multisite' => true, 'skip-deps' => false]) {
|
||||||
return $this->runTestsInContainer(array_merge($opts, ['test_type' => 'integration']));
|
return $this->runTestsInContainer(array_merge($opts, ['test_type' => 'integration']));
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1220,6 +1220,8 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
(isset($opts['multisite']) && $opts['multisite'] ? '-e MULTISITE=1 ' : '-e MULTISITE=0 ') .
|
(isset($opts['multisite']) && $opts['multisite'] ? '-e MULTISITE=1 ' : '-e MULTISITE=0 ') .
|
||||||
"codeception_{$testType} --steps --debug -vvv " .
|
"codeception_{$testType} --steps --debug -vvv " .
|
||||||
(isset($opts['xml']) && $opts['xml'] ? '--xml ' : '') .
|
(isset($opts['xml']) && $opts['xml'] ? '--xml ' : '') .
|
||||||
|
(isset($opts['group']) && $opts['group'] ? '--group ' . $opts['group'] . ' ' : '') .
|
||||||
|
(isset($opts['skip-group']) && $opts['skip-group'] ? '--skip-group ' . $opts['skip-group'] . ' ' : '') .
|
||||||
'-f ' . (isset($opts['file']) && $opts['file'] ? $opts['file'] : '')
|
'-f ' . (isset($opts['file']) && $opts['file'] ? $opts['file'] : '')
|
||||||
)->dir(__DIR__ . '/tests/docker')->run();
|
)->dir(__DIR__ . '/tests/docker')->run();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user