Skip to content

Commit 4f25d64

Browse files
committed
MQE-1331: MFTF Run:Test Will Run All Tests That Are Already Generated
added error handling
1 parent d2010f0 commit 4f25d64

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Magento/FunctionalTestingFramework/Console/RunTestCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9696
foreach ($tests as $test) {
9797
$testGroup = TestGenerator::DEFAULT_DIR . DIRECTORY_SEPARATOR;
9898
$testName = $test . 'Cest.php';
99+
if (!realpath($testsDirectory . $testGroup . $testName)) {
100+
throw new TestFrameworkException(
101+
$testName . " is not available under " . $testsDirectory . $testGroup
102+
);
103+
}
99104
$fullCommand = $codeceptionCommand . $testsDirectory . $testGroup . $testName . ' --verbose --steps';
100105
$process = new Process($fullCommand);
101106
$process->setWorkingDirectory(TESTS_BP);

0 commit comments

Comments
 (0)