File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
src/Magento/FunctionalTestingFramework/Extension Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -160,24 +160,24 @@ function (TestResult $testResult) {
160
160
}
161
161
);
162
162
163
- $ group = null ;
163
+ $ groupName = null ;
164
164
if ($ this ->options ['groups ' ] !== null ) {
165
165
$ group = $ this ->options ['groups ' ][0 ];
166
- }
167
- if ($ group !== null ) {
168
166
$ groupName = $ this ->sanitizeGroupName ($ group );
169
- $ lifecycle ->updateTest (
170
- function (TestResult $ testResult ) use ($ groupName ) {
171
- $ labels = $ testResult ->getLabels ();
172
- foreach ($ labels as $ label ) {
173
- if ($ label ->getName () == "parentSuite " ) {
174
- $ label ->setValue (sprintf ('%s\%s ' , $ label ->getValue (), $ groupName ));
175
- break ;
176
- }
167
+ }
168
+ $ lifecycle ->updateTest (
169
+ 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
177
}
178
178
}
179
- );
180
- }
179
+ }
180
+ );
181
181
}
182
182
183
183
/**
You can’t perform that action at this time.
0 commit comments