Add confirmation before running integration tests on dev site

[MAILPOET-3755]
This commit is contained in:
Rostislav Wolny
2021-09-17 14:57:38 +02:00
committed by Veljko V
parent 0cad857653
commit f98167a30c

View File

@ -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']) {