diff --git a/dev/tests/verification/Resources/SkippedTestNoIssues.txt b/dev/tests/verification/Resources/GroupSkipGenerationTest.txt
similarity index 65%
rename from dev/tests/verification/Resources/SkippedTestNoIssues.txt
rename to dev/tests/verification/Resources/GroupSkipGenerationTest.txt
index 387ada571..89884df82 100644
--- a/dev/tests/verification/Resources/SkippedTestNoIssues.txt
+++ b/dev/tests/verification/Resources/GroupSkipGenerationTest.txt
@@ -13,14 +13,14 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
use Yandex\Allure\Adapter\Annotation\TestCaseId;
/**
- * @Title("[NO TESTCASEID]: skippedNoIssuesTest")
- * @Description("
Test files
verification/TestModule/Test/SkippedTest/SkippedTestNoIssues.xml
")
+ * @Title("[NO TESTCASEID]: GroupSkipGenerationTestTitle")
+ * @Description("GroupSkipGenerationTestDescriptionTest files
verification/TestModule/Test/GroupSkipGenerationTest.xml
")
* @group skip
*/
-class SkippedTestNoIssuesCest
+class GroupSkipGenerationTestCest
{
/**
- * @Stories({"skippedNo"})
+ * @Stories({"GroupSkipGenerationTestStory"})
* @Severity(level = SeverityLevel::MINOR)
* @Features({"TestModule"})
* @Parameter(name = "AcceptanceTester", value="$I")
@@ -28,8 +28,7 @@ class SkippedTestNoIssuesCest
* @return void
* @throws \Exception
*/
- public function SkippedTestNoIssues(AcceptanceTester $I, \Codeception\Scenario $scenario)
+ public function GroupSkipGenerationTest(AcceptanceTester $I)
{
- $scenario->skip("This test is skipped due to the following issues:\nNo issues have been specified.");
}
}
diff --git a/dev/tests/verification/TestModule/Test/SkippedTest/SkippedTestNoIssues.xml b/dev/tests/verification/TestModule/Test/GroupSkipGenerationTest.xml
similarity index 64%
rename from dev/tests/verification/TestModule/Test/SkippedTest/SkippedTestNoIssues.xml
rename to dev/tests/verification/TestModule/Test/GroupSkipGenerationTest.xml
index 02f800536..35cf74d33 100644
--- a/dev/tests/verification/TestModule/Test/SkippedTest/SkippedTestNoIssues.xml
+++ b/dev/tests/verification/TestModule/Test/GroupSkipGenerationTest.xml
@@ -7,11 +7,11 @@
-->
-
+
-
-
-
+
+
+
diff --git a/dev/tests/verification/Tests/GroupSkipGenerationTest.php b/dev/tests/verification/Tests/GroupSkipGenerationTest.php
new file mode 100644
index 000000000..ad0ba6ec0
--- /dev/null
+++ b/dev/tests/verification/Tests/GroupSkipGenerationTest.php
@@ -0,0 +1,22 @@
+generateAndCompareTest('GroupSkipGenerationTest');
+ }
+}
diff --git a/dev/tests/verification/Tests/SkippedGenerationTest.php b/dev/tests/verification/Tests/SkippedGenerationTest.php
index 2d259e02c..2bc73986a 100644
--- a/dev/tests/verification/Tests/SkippedGenerationTest.php
+++ b/dev/tests/verification/Tests/SkippedGenerationTest.php
@@ -41,15 +41,4 @@ public function testMultipleSkippedIssuesGeneration()
{
$this->generateAndCompareTest('SkippedTestTwoIssues');
}
-
- /**
- * Tests skipped test generation with no specified issues. Will be deprecated after MFTF 3.0.0
- *
- * @throws \Exception
- * @throws \Magento\FunctionalTestingFramework\Exceptions\TestReferenceException
- */
- public function testSkippedNoIssueGeneration()
- {
- $this->generateAndCompareTest('SkippedTestNoIssues');
- }
}
diff --git a/docs/merging.md b/docs/merging.md
index e4b91fb5f..ad3198623 100644
--- a/docs/merging.md
+++ b/docs/merging.md
@@ -35,7 +35,7 @@ To add a ``, create a new `*Test.xml` file or add a `` node to an ex
## Remove a test
Tests cannot be removed while merging.
-If a [``][tests] must be skipped due to a module completely invalidating a function, you can add the test to the `skip` group.
+If a [``][tests] must be skipped due to a module completely invalidating a function, you can use `skip` annotation to skip the test.
Learn more about running tests with different options using [`mftf`] or [`codecept`] commands.
diff --git a/docs/suite.md b/docs/suite.md
index 65bcedce0..7917cd347 100644
--- a/docs/suite.md
+++ b/docs/suite.md
@@ -46,7 +46,7 @@ The format of a suite:
- must not match any existing group value.
For example, the suite `` will fail during test run if any test contains in annotations ``.
- must not be `default` or `skip`. Tests that are not in any suite are generated under the `default` suite.
- The suite name `skip` is synonymous to including a test in the ``, which will be deprecated in MFTF 3.0.0.
+ The suite name `skip` is synonymous to including a test in the ``.
- can contain letters, numbers, and underscores.
- should be upper camel case.
diff --git a/docs/test/annotations.md b/docs/test/annotations.md
index f30b8104e..4e9194bb0 100644
--- a/docs/test/annotations.md
+++ b/docs/test/annotations.md
@@ -87,7 +87,7 @@ Add `` to the test to skip it during test run.
Attribute|Type|Use|Definition
---|---|---|---
-`value`|string|required|A value that is used to group tests. It should be lower case. `skip` is reserved to ignore content of the test and generate an empty test.
+`value`|string|required|A value that is used to group tests. It should be lower case.
#### Example
diff --git a/src/Magento/FunctionalTestingFramework/Test/Objects/TestObject.php b/src/Magento/FunctionalTestingFramework/Test/Objects/TestObject.php
index 01319bc67..82bb04906 100644
--- a/src/Magento/FunctionalTestingFramework/Test/Objects/TestObject.php
+++ b/src/Magento/FunctionalTestingFramework/Test/Objects/TestObject.php
@@ -161,11 +161,8 @@ public function getDeprecated()
*/
public function isSkipped()
{
- // TODO deprecation|deprecate MFTF 3.0.0 remove elseif when group skip is no longer allowed
if (array_key_exists('skip', $this->annotations)) {
return true;
- } elseif (array_key_exists('group', $this->annotations) && (in_array("skip", $this->annotations['group']))) {
- return true;
}
return false;
}
diff --git a/src/Magento/FunctionalTestingFramework/Test/Util/AnnotationExtractor.php b/src/Magento/FunctionalTestingFramework/Test/Util/AnnotationExtractor.php
index 031215abb..46adb7ce2 100644
--- a/src/Magento/FunctionalTestingFramework/Test/Util/AnnotationExtractor.php
+++ b/src/Magento/FunctionalTestingFramework/Test/Util/AnnotationExtractor.php
@@ -92,13 +92,6 @@ public function extractAnnotations($testAnnotations, $filename, $validateAnnotat
foreach ($annotationData as $annotationValue) {
$annotationValues[] = $annotationValue[self::ANNOTATION_VALUE];
}
- // TODO deprecation|deprecate MFTF 3.0.0
- if ($annotationKey == "group" && in_array("skip", $annotationValues)) {
- LoggingUtil::getInstance()->getLogger(AnnotationExtractor::class)->warning(
- "Use of group skip will be deprecated in MFTF 3.0.0. Please update tests to use skip tags.",
- ["test" => $filename]
- );
- }
$annotationObjects[$annotationKey] = $annotationValues;
}