File tree Expand file tree Collapse file tree 7 files changed +14
-42
lines changed
dev/tests/verification/Resources
src/Magento/FunctionalTestingFramework/Util Expand file tree Collapse file tree 7 files changed +14
-42
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,7 @@ class ChildExtendedTestNoParentCest
31
31
*/
32
32
public function ChildExtendedTestNoParent(AcceptanceTester $I, \Codeception\Scenario $scenario)
33
33
{
34
- $scenario->skip("This test is skipped due to the following issues:No issues have been specified.");
35
- }
36
-
37
- public function _passed(AcceptanceTester $I)
38
- {
39
- // Deleting itself so that we can rerun only failed tests.
40
34
unlink(__FILE__);
35
+ $scenario->skip("This test is skipped due to the following issues:No issues have been specified.");
41
36
}
42
37
}
Original file line number Diff line number Diff line change @@ -30,12 +30,7 @@ class ExtendingSkippedTestCest
30
30
*/
31
31
public function ExtendingSkippedTest(AcceptanceTester $I, \Codeception\Scenario $scenario)
32
32
{
33
- $scenario->skip("This test is skipped due to the following issues:\nParentTestIsSkipped");
34
- }
35
-
36
- public function _passed(AcceptanceTester $I)
37
- {
38
- // Deleting itself so that we can rerun only failed tests.
39
33
unlink(__FILE__);
34
+ $scenario->skip("This test is skipped due to the following issues:\nParentTestIsSkipped");
40
35
}
41
36
}
Original file line number Diff line number Diff line change @@ -26,12 +26,7 @@ class MergeSkipCest
26
26
*/
27
27
public function MergeSkip(AcceptanceTester $I, \Codeception\Scenario $scenario)
28
28
{
29
- $scenario->skip("This test is skipped due to the following issues:\nIssue5");
30
- }
31
-
32
- public function _passed(AcceptanceTester $I)
33
- {
34
- // Deleting itself so that we can rerun only failed tests.
35
29
unlink(__FILE__);
30
+ $scenario->skip("This test is skipped due to the following issues:\nIssue5");
36
31
}
37
32
}
Original file line number Diff line number Diff line change @@ -29,12 +29,7 @@ class SkippedTestCest
29
29
*/
30
30
public function SkippedTest(AcceptanceTester $I, \Codeception\Scenario $scenario)
31
31
{
32
- $scenario->skip("This test is skipped due to the following issues:\nSkippedValue");
33
- }
34
-
35
- public function _passed(AcceptanceTester $I)
36
- {
37
- // Deleting itself so that we can rerun only failed tests.
38
32
unlink(__FILE__);
33
+ $scenario->skip("This test is skipped due to the following issues:\nSkippedValue");
39
34
}
40
35
}
Original file line number Diff line number Diff line change @@ -29,12 +29,7 @@ class SkippedTestTwoIssuesCest
29
29
*/
30
30
public function SkippedTestTwoIssues(AcceptanceTester $I, \Codeception\Scenario $scenario)
31
31
{
32
- $scenario->skip("This test is skipped due to the following issues:\nSkippedValue\nSecondSkippedValue");
33
- }
34
-
35
- public function _passed(AcceptanceTester $I)
36
- {
37
- // Deleting itself so that we can rerun only failed tests.
38
32
unlink(__FILE__);
33
+ $scenario->skip("This test is skipped due to the following issues:\nSkippedValue\nSecondSkippedValue");
39
34
}
40
35
}
Original file line number Diff line number Diff line change @@ -29,12 +29,7 @@ class SkippedTestWithHooksCest
29
29
*/
30
30
public function SkippedTestWithHooks(AcceptanceTester $I, \Codeception\Scenario $scenario)
31
31
{
32
- $scenario->skip("This test is skipped due to the following issues:\nSkippedValue");
33
- }
34
-
35
- public function _passed(AcceptanceTester $I)
36
- {
37
- // Deleting itself so that we can rerun only failed tests.
38
32
unlink(__FILE__);
33
+ $scenario->skip("This test is skipped due to the following issues:\nSkippedValue");
39
34
}
40
35
}
Original file line number Diff line number Diff line change @@ -1812,12 +1812,14 @@ private function generateTestPhp($test)
1812
1812
$ testPhp .= $ steps ;
1813
1813
$ testPhp .= "\t} \n" ;
1814
1814
1815
- $ testPhp .= PHP_EOL ;
1816
- $ testPhp .= sprintf ("\tpublic function _passed(%s) \n" , $ dependencies );
1817
- $ testPhp .= "\t{ \n" ;
1818
- $ testPhp .= "\t\t// Deleting itself so that we can rerun only failed tests. " . PHP_EOL ;
1819
- $ testPhp .= "\t\tunlink(__FILE__); " . PHP_EOL ;
1820
- $ testPhp .= "\t} \n" ;
1815
+ if (!isset ($ skipString )) {
1816
+ $ testPhp .= PHP_EOL ;
1817
+ $ testPhp .= sprintf ("\tpublic function _passed(%s) \n" , $ dependencies );
1818
+ $ testPhp .= "\t{ \n" ;
1819
+ $ testPhp .= "\t\t// Deleting itself so that we can rerun only failed tests. " . PHP_EOL ;
1820
+ $ testPhp .= "\t\tunlink(__FILE__); " . PHP_EOL ;
1821
+ $ testPhp .= "\t} \n" ;
1822
+ }
1821
1823
1822
1824
return $ testPhp ;
1823
1825
}
You can’t perform that action at this time.
0 commit comments