Skip to content

Commit a8ddcb9

Browse files
imeron2433tomreece
authored andcommitted
MQE-453: [DevOps] Add optional arg for consolidated test run
- add args to robofile command for env and config during test generation
1 parent e4678e6 commit a8ddcb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/tests/acceptance/RoboFile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ function buildProject()
3636
/**
3737
* Generate all Tests
3838
*/
39-
function generateTests()
39+
function generateTests($opts = ['config' => null, 'env' => 'chrome'])
4040
{
4141
require 'tests/functional/_bootstrap.php';
42-
\Magento\FunctionalTestingFramework\Util\TestGenerator::getInstance()->createAllCestFiles();
42+
\Magento\FunctionalTestingFramework\Util\TestGenerator::getInstance()->createAllCestFiles($opts['config'], $opts['env']);
4343
$this->say("Generate Tests Command Run");
4444
}
4545

0 commit comments

Comments
 (0)