Skip to content

Commit 182b7dd

Browse files
committed
MQE-2008: Filter test generation and execution by severity
1 parent 7758075 commit 182b7dd

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Magento/FunctionalTestingFramework/Suite/SuiteGenerator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ public function generateAllSuites($testManifest)
9797
foreach ($suites as $suiteName => $suiteContent) {
9898
if (empty($suiteContent)) {
9999
LoggingUtil::getInstance()->getLogger(self::class)->notification(
100-
"Suite '" . $suiteName . "' contains no tests and won't be generated." . PHP_EOL, [], true
100+
"Suite '" . $suiteName . "' contains no tests and won't be generated." . PHP_EOL,
101+
[],
102+
true
101103
);
102104
continue;
103105
}

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@ private function loadAllTestObjects($testsToIgnore)
172172
{
173173
if ($this->tests === null || empty($this->tests)) {
174174
$testObjects = TestObjectHandler::getInstance()->getAllObjects();
175-
176-
177-
178175
return array_diff_key($testObjects, $testsToIgnore);
179176
}
180177

@@ -298,7 +295,6 @@ private function assembleAllTestPhp($testManifest, array $testsToIgnore)
298295
$filter->filter($testObjects);
299296
}
300297

301-
302298
foreach ($testObjects as $test) {
303299
// Do not generate test if it is an extended test and parent does not exist
304300
if ($test->isSkipped() && !empty($test->getParentName())) {

0 commit comments

Comments
 (0)