Skip to content

Commit e276941

Browse files
committed
count groupname test
1 parent 2c5c3d2 commit e276941

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Magento/FunctionalTestingFramework/Util/Manifest/BaseParallelTestManifest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function generate()
9494
$this->generateGroupFile($groupContents, $groupNumber, $suites);
9595
}
9696

97-
$this->generateGroupSummaryFile($this->testCountsToGroup);
97+
$this->generateGroupSummaryFile($this->testCountsToGroup);
9898
}
9999

100100
/**
@@ -124,9 +124,9 @@ protected function generateGroupFile($testGroup, $nodeNumber, $suites)
124124

125125
$this->testCountsToGroup["group{$nodeNumber}"] = $this->testCountsToGroup["group{$nodeNumber}"] ?? 0;
126126

127-
$line = null;
128-
if (!empty($suites[$entryName])) {
127+
if (!empty($suites[$entryName])) {
129128
$line = "-g {$entryName}";
129+
$this->testCountsToGroup["group{$nodeNumber}"] += count($suites[$entryName]);
130130
} else {
131131
$line = $this->relativeDirPath . DIRECTORY_SEPARATOR . $entryName . '.php';
132132
$this->testCountsToGroup["group{$nodeNumber}"]++;
@@ -145,7 +145,7 @@ protected function generateGroupSummaryFile(array $groups)
145145
$fileResource = fopen($this->dirPath . DIRECTORY_SEPARATOR . "mftf_group_summary.txt", 'w');
146146
$contents = "Total Number of Groups: " . count($groups) . PHP_EOL;
147147
foreach ($groups as $key => $value) {
148-
$contents .= $key . " - ". $value . "tests" .PHP_EOL;
148+
$contents .= $key . " - ". $value . " tests" .PHP_EOL;
149149
}
150150
fwrite($fileResource, $contents);
151151
fclose($fileResource);

0 commit comments

Comments
 (0)