Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
tkotosz committed Oct 4, 2024
1 parent ba63998 commit 5da1fa0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions features/bootstrap/Context/TestRunnerContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,27 @@ protected function runMagentoCommand(string $command, string $arguments = '')
);
$magentoProcess->setTimeout(120);
$magentoProcess->run();

if (!empty($magentoProcess->getErrorOutput())) {
echo "-----" . PHP_EOL;
echo $magentoProcess->getOutput() . PHP_EOL;
echo $magentoProcess->getErrorOutput() . PHP_EOL;
echo "-----" . PHP_EOL;
}
}

/**
* @param AfterScenarioScope $scope
*/
public function printTesterOutputOnFailure($scope)
{
if ($this->behatProcess !== null && !$scope->getTestResult()->isPassed()) {
echo "-----" . PHP_EOL;
echo $this->behatProcess->getOutput() . PHP_EOL;
echo $this->behatProcess->getErrorOutput() . PHP_EOL;
echo "-----" . PHP_EOL;
}

parent::printTesterOutputOnFailure($scope);
}
}

0 comments on commit 5da1fa0

Please sign in to comment.