Skip to content

Commit 6e25452

Browse files
committed
Split suite and default tests to different groups
1 parent 9e0160e commit 6e25452

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/Magento/FunctionalTestingFramework/Util/Sorter/ParallelGroupSorter.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,18 @@ public function getTestsGroupedBySize($suiteConfiguration, $testNameToSize, $tim
4747
$testGroups = [];
4848
$splitSuiteNamesToTests = $this->createGroupsWithinSuites($suiteConfiguration, $time);
4949
$splitSuiteNamesToSize = $this->getSuiteToSize($splitSuiteNamesToTests);
50-
$entriesForGeneration = array_merge($testNameToSize, $splitSuiteNamesToSize);
51-
arsort($entriesForGeneration);
50+
arsort($testNameToSize);
51+
arsort($splitSuiteNamesToSize);
5252

53-
$testNameToSizeForUse = $entriesForGeneration;
53+
$testNameToSizeForUse = $testNameToSize;
5454
$nodeNumber = 1;
55-
foreach ($entriesForGeneration as $testName => $testSize) {
55+
56+
foreach ($splitSuiteNamesToSize as $testName => $testSize) {
57+
$testGroups[$nodeNumber] = [$testName => $testSize];
58+
$nodeNumber++;
59+
}
60+
61+
foreach ($testNameToSize as $testName => $testSize) {
5662
if (!array_key_exists($testName, $testNameToSizeForUse)) {
5763
// skip tests which have already been added to a group
5864
continue;

0 commit comments

Comments
 (0)