Add confirmation before running integration tests on dev site
[MAILPOET-3755]
This commit is contained in:
committed by
Veljko V
parent
0cad857653
commit
f98167a30c
@ -149,6 +149,12 @@ class RoboFile extends \Robo\Tasks {
|
||||
}
|
||||
|
||||
public function testIntegration(array $opts=['file' => null, 'xml' => false, 'multisite' => false, 'debug' => false]) {
|
||||
if (getenv('MAILPOET_DEV_SITE')) {
|
||||
$run = $this->confirm("You are about to run tests on the development site. Your DB data will be erased. \nDo you want to proceed?", false);
|
||||
if (!$run) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
$command = 'vendor/bin/codecept run integration -vvv';
|
||||
|
||||
if ($opts['multisite']) {
|
||||
|
Reference in New Issue
Block a user