Skip to content

Commit e305ba7

Browse files
committed
MQE-2086: Reduce amount of attachments in Allure reports
- Changed flag to string comparison
1 parent 47eef33 commit e305ba7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dev/tests/functional/standalone_bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
defined('WAIT_TIMEOUT') || define('WAIT_TIMEOUT', 30);
5454
$env->setEnvironmentVariable('WAIT_TIMEOUT', WAIT_TIMEOUT);
5555

56-
defined('VERBOSE_ARTIFACTS') || define('VERBOSE_ARTIFACTS', false);
56+
defined('VERBOSE_ARTIFACTS') || define('VERBOSE_ARTIFACTS', 'false');
5757
$env->setEnvironmentVariable('VERBOSE_ARTIFACTS', VERBOSE_ARTIFACTS);
5858

5959
try {

src/Magento/FunctionalTestingFramework/Allure/Adapter/MagentoAllureAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ private function retrieveStepKey($stepLine)
369369
private function removeAttachments($step, $testFailed)
370370
{
371371
//Remove Attachments if verbose flag is not true AND test did not fail
372-
if (getenv('VERBOSE_ARTIFACTS') !== true && $testFailed === null) {
372+
if (getenv('VERBOSE_ARTIFACTS') !== 'true' && $testFailed === null) {
373373
foreach ($step->getAttachments() as $index => $attachment) {
374374
$step->removeAttachment($index);
375375
unlink(Provider::getOutputDirectory() . DIRECTORY_SEPARATOR . $attachment->getSource());

src/Magento/FunctionalTestingFramework/_bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
defined('WAIT_TIMEOUT') || define('WAIT_TIMEOUT', 30);
5454
$env->setEnvironmentVariable('WAIT_TIMEOUT', WAIT_TIMEOUT);
5555

56-
defined('VERBOSE_ARTIFACTS') || define('VERBOSE_ARTIFACTS', false);
56+
defined('VERBOSE_ARTIFACTS') || define('VERBOSE_ARTIFACTS', 'false');
5757
$env->setEnvironmentVariable('VERBOSE_ARTIFACTS', VERBOSE_ARTIFACTS);
5858

5959
try {

0 commit comments

Comments
 (0)