Skip to content

Commit d97b013

Browse files
committed
MQE-1582: Enable Testers To Run Skipped Tests
- Fix tag name to allow-skipped as per AC
1 parent c113b9f commit d97b013

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/Magento/FunctionalTestingFramework/Console/BaseGenerateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function configure()
3636
InputOption::VALUE_NONE,
3737
'force generation and running of tests regardless of Magento Instance Configuration'
3838
)->addOption(
39-
"allowSkipped",
39+
"allow-skipped",
4040
'a',
4141
InputOption::VALUE_NONE,
4242
'Allows MFTF to generate and run skipped tests.'

src/Magento/FunctionalTestingFramework/Console/GenerateSuiteCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
4646
$debug = $input->getOption('debug') ?? MftfApplicationConfig::LEVEL_DEVELOPER; // for backward compatibility
4747
$remove = $input->getOption('remove');
4848
$verbose = $output->isVerbose();
49-
$allowSkipped = $input->getOption('allowSkipped');
49+
$allowSkipped = $input->getOption('allow-skipped');
5050

5151
// Set application configuration so we can references the user options in our framework
5252
MftfApplicationConfig::create(

src/Magento/FunctionalTestingFramework/Console/GenerateTestsCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7171
$debug = $input->getOption('debug') ?? MftfApplicationConfig::LEVEL_DEVELOPER; // for backward compatibility
7272
$remove = $input->getOption('remove');
7373
$verbose = $output->isVerbose();
74-
$allowSkipped = $input->getOption('allowSkipped');
74+
$allowSkipped = $input->getOption('allow-skipped');
7575

7676
// Set application configuration so we can references the user options in our framework
7777
MftfApplicationConfig::create(

src/Magento/FunctionalTestingFramework/Console/RunTestCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6464
$force = $input->getOption('force');
6565
$remove = $input->getOption('remove');
6666
$debug = $input->getOption('debug') ?? MftfApplicationConfig::LEVEL_DEVELOPER; // for backward compatibility
67-
$allowSkipped = $input->getOption('allowSkipped');
67+
$allowSkipped = $input->getOption('allow-skipped');
6868
$verbose = $output->isVerbose();
6969

7070
if ($skipGeneration and $remove) {
@@ -92,7 +92,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9292
'--force' => $force,
9393
'--remove' => $remove,
9494
'--debug' => $debug,
95-
'--allowSkipped' => $allowSkipped,
95+
'--allow-skipped' => $allowSkipped,
9696
'-v' => $verbose
9797
];
9898
$command->run(new ArrayInput($args), $output);

src/Magento/FunctionalTestingFramework/Console/RunTestFailedCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7070
{
7171
$force = $input->getOption('force');
7272
$debug = $input->getOption('debug') ?? MftfApplicationConfig::LEVEL_DEVELOPER; // for backward compatibility
73-
$allowSkipped = $input->getOption('allowSkipped');
73+
$allowSkipped = $input->getOption('allow-skipped');
7474
$verbose = $output->isVerbose();
7575

7676
// Create Mftf Configuration
@@ -95,7 +95,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9595
'--force' => $force,
9696
'--remove' => true,
9797
'--debug' => $debug,
98-
'--allowSkipped' => $allowSkipped,
98+
'--allow-skipped' => $allowSkipped,
9999
'-v' => $verbose
100100
];
101101
$command->run(new ArrayInput($args), $output);

src/Magento/FunctionalTestingFramework/Console/RunTestGroupCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6060
$groups = $input->getArgument('groups');
6161
$remove = $input->getOption('remove');
6262
$debug = $input->getOption('debug') ?? MftfApplicationConfig::LEVEL_DEVELOPER; // for backward compatibility
63-
$allowSkipped = $input->getOption('allowSkipped');
63+
$allowSkipped = $input->getOption('allow-skipped');
6464
$verbose = $output->isVerbose();
6565

6666
if ($skipGeneration and $remove) {
@@ -87,7 +87,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8787
'--force' => $force,
8888
'--remove' => $remove,
8989
'--debug' => $debug,
90-
'--allowSkipped' => $allowSkipped,
90+
'--allow-skipped' => $allowSkipped,
9191
'-v' => $verbose
9292
];
9393

0 commit comments

Comments
 (0)