Skip to content

Commit 75f5224

Browse files
committed
MQE-2008: Filter test generation and execution by severity
1 parent a6ec117 commit 75f5224

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Magento/FunctionalTestingFramework/Console/BaseGenerateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class BaseGenerateCommand extends Command
3535
*
3636
* @var SymfonyStyle
3737
*/
38-
private $ioStyle = null;
38+
protected $ioStyle = null;
3939

4040
/**
4141
* Configures the base command.

src/Magento/FunctionalTestingFramework/Console/GenerateTestsCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function configure()
7777
*/
7878
protected function execute(InputInterface $input, OutputInterface $output)
7979
{
80-
$ioStyle = new SymfonyStyle($input, $output);
80+
$this->setOutputStyle($input, $output);
8181
$tests = $input->getArgument('name');
8282
$config = $input->getOption('config');
8383
$json = $input->getOption('tests'); // for backward compatibility
@@ -103,7 +103,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
103103
$filterList ?? []
104104
);
105105
} catch (\Exception $exception) {
106-
$ioStyle->error("Test generation failed." . PHP_EOL . $exception->getMessage());
106+
$this->ioStyle->error("Test generation failed." . PHP_EOL . $exception->getMessage());
107107
return 1;
108108
}
109109

@@ -151,7 +151,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
151151
$message .= !empty($filters) ? 'Filter(s): ' . implode(', ', $filters) . PHP_EOL : '';
152152
$message .= !empty($tests) ? 'Test name(s): ' . implode(', ', $tests) . PHP_EOL : '';
153153
$message .= !empty($json) && empty($tests) ? 'Test configuration: ' . $json . PHP_EOL : '';
154-
$ioStyle->note($message);
154+
$this->ioStyle->note($message);
155155

156156
return 1;
157157
}

0 commit comments

Comments
 (0)