File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed
src/Magento/FunctionalTestingFramework/Extension Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change
1
+ magento/MAGENTO_ADMIN_PASSWORD=Admin@123456
Original file line number Diff line number Diff line change @@ -160,23 +160,28 @@ function (TestResult $testResult) {
160
160
}
161
161
);
162
162
163
+ $ this ->addTestsInSuites ($ lifecycle , $ cest );
164
+ }
165
+
166
+ private function addTestsInSuites ($ lifecycle , $ cest ): void
167
+ {
163
168
$ groupName = null ;
164
169
if ($ this ->options ['groups ' ] !== null ) {
165
170
$ group = $ this ->options ['groups ' ][0 ];
166
171
$ groupName = $ this ->sanitizeGroupName ($ group );
167
172
}
168
173
$ lifecycle ->updateTest (
169
174
function (TestResult $ testResult ) use ($ groupName , $ cest ) {
170
- $ labels = $ testResult ->getLabels ();
171
- foreach ($ labels as $ label ) {
172
- if ($ groupName !== null && $ label ->getName () === "parentSuite " ) {
173
- $ label ->setValue (sprintf ('%s\%s ' , $ label ->getValue (), $ groupName ));
174
- }
175
- if ($ label ->getName () === "package " ) {
176
- $ label ->setValue ($ cest ->getReportFields ()['class ' ]);
177
- }
175
+ $ labels = $ testResult ->getLabels ();
176
+ foreach ($ labels as $ label ) {
177
+ if ($ groupName !== null && $ label ->getName () === "parentSuite " ) {
178
+ $ label ->setValue (sprintf ('%s\%s ' , $ label ->getValue (), $ groupName ));
179
+ }
180
+ if ($ label ->getName () === "package " ) {
181
+ $ label ->setValue ($ cest ->getReportFields ()['class ' ]);
178
182
}
179
183
}
184
+ }
180
185
);
181
186
}
182
187
You can’t perform that action at this time.
0 commit comments