Skip to content

Commit 5877f0d

Browse files
imeron2433okolesnyk
authored andcommitted
MQE-526: Do not depend on xml merging by filename-order
- add force flag and generate tests state
1 parent f472b8b commit 5877f0d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dev/tests/acceptance/RoboFile.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,15 @@ function buildProject()
4343
* @param array $opts
4444
* @return void
4545
*/
46-
function generateTests($opts = ['config' => null])
46+
function generateTests($opts = ['config' => null, 'force' => false])
4747
{
48+
$GLOBALS['GENERATE_TESTS'] = true;
49+
50+
if ($opts['force'])
51+
{
52+
$GLOBALS['FORCE_PHP_GENERATE'] = true;
53+
}
54+
4855
require 'tests'. DIRECTORY_SEPARATOR . 'functional' . DIRECTORY_SEPARATOR . '_bootstrap.php';
4956
\Magento\FunctionalTestingFramework\Util\TestGenerator::getInstance()->createAllTestFiles($opts['config']);
5057
$this->say("Generate Tests Command Run");

0 commit comments

Comments
 (0)