File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/Magento/FunctionalTestingFramework/Test Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,6 @@ public function isSkipped()
130
130
if (array_key_exists ('skip ' , $ this ->annotations )) {
131
131
return true ;
132
132
} elseif (array_key_exists ('group ' , $ this ->annotations ) && (in_array ("skip " , $ this ->annotations ['group ' ]))) {
133
- print ("Use of group skip will be deprecated in MFTF 3.0.0. Please update tests to use skip tags. " );
134
133
return true ;
135
134
}
136
135
return false ;
Original file line number Diff line number Diff line change @@ -62,14 +62,25 @@ public function extractAnnotations($testAnnotations, $filename)
62
62
);
63
63
continue ;
64
64
}
65
+
65
66
if ($ annotationKey == "skip " ) {
66
67
$ annotationData = $ annotationData ['issueId ' ];
67
68
$ this ->validateSkippedIssues ($ annotationData , $ filename );
68
69
}
70
+
69
71
foreach ($ annotationData as $ annotationValue ) {
70
72
$ annotationValues [] = $ annotationValue [self ::ANNOTATION_VALUE ];
71
73
}
72
74
75
+ if ($ annotationKey == "group " && in_array ("skip " , $ annotationValues )) {
76
+ print (
77
+ "Test: $ filename " .
78
+ PHP_EOL .
79
+ "Use of group skip will be deprecated in MFTF 3.0.0. Please update tests to use skip tags. " .
80
+ PHP_EOL
81
+ );
82
+ }
83
+
73
84
$ annotationObjects [$ annotationKey ] = $ annotationValues ;
74
85
}
75
86
$ this ->addStoryTitleToMap ($ annotationObjects , $ filename );
You can’t perform that action at this time.
0 commit comments