Skip to content

Instantly share code, notes, and snippets.

@navarr
Last active July 17, 2020 12:37
Show Gist options
  • Save navarr/4cfe9fb85e65b19b0b6e0f2a2e58c465 to your computer and use it in GitHub Desktop.
Save navarr/4cfe9fb85e65b19b0b6e0f2a2e58c465 to your computer and use it in GitHub Desktop.
--- a/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Console/RunTestCommand.php 2020-07-17 12:31:19.227057295 +0000
+++ b/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Console/RunTestCommand.php 2020-07-17 12:28:43.891916513 +0000
@@ -136,7 +136,7 @@
$testName . " is not available under " . $testsDirectory
);
}
- $fullCommand = $codeceptionCommand . $testsDirectory . $testName . ' --verbose --steps';
+ $fullCommand = $codeceptionCommand . $testsDirectory . $testName . ' --verbose --steps --xml';
$this->returnCode = max($this->returnCode, $this->executeTestCommand($fullCommand, $output));
}
}
@@ -150,7 +150,7 @@
*/
private function runTestsInSuite(array $suitesConfig, OutputInterface $output)
{
- $codeceptionCommand = realpath(PROJECT_ROOT . '/vendor/bin/codecept') . ' run functional --verbose --steps ';
+ $codeceptionCommand = realpath(PROJECT_ROOT . '/vendor/bin/codecept') . ' run functional --verbose --steps --xml ';
//for tests in suites, run them as a group to run before and after block
foreach (array_keys($suitesConfig) as $suite) {
$fullCommand = $codeceptionCommand . " -g {$suite}";
--- a/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Console/RunTestGroupCommand.php 2020-07-17 12:31:27.567056953 +0000
+++ b/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Console/RunTestGroupCommand.php 2020-07-17 12:31:43.875237515 +0000
@@ -94,7 +94,7 @@
$command->run(new ArrayInput($args), $output);
}
- $commandString = realpath(PROJECT_ROOT . '/vendor/bin/codecept') . ' run functional --verbose --steps';
+ $commandString = realpath(PROJECT_ROOT . '/vendor/bin/codecept') . ' run functional --verbose --steps --xml';
$exitCode = -1;
$returnCodes = [];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment