18
18
19
19
class RunTestFailedCommand extends BaseGenerateCommand
20
20
{
21
- /**
22
- * Default Test group to signify not in suite
23
- */
24
- const DEFAULT_TEST_GROUP = 'default ' ;
25
-
26
21
/**
27
22
* @var string
28
23
*/
@@ -61,7 +56,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
61
56
{
62
57
$ this ->testsFailedFile = $ this ->getTestsOutputDir () . self ::FAILED_FILE ;
63
58
$ this ->testsReRunFile = $ this ->getTestsOutputDir () . "rerun_tests " ;
64
- $ failedTestList = $ this ->readFailedTestFile ($ this ->testsFailedFile );
65
59
66
60
$ this ->testsManifestFile = FilePathFormatter::format (TESTS_MODULE_PATH ) .
67
61
"_generated " .
@@ -71,9 +65,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
71
65
$ testManifestList = $ this ->readTestManifestFile ();
72
66
$ returnCode = 0 ;
73
67
for ($ i = 0 ; $ i < count ($ testManifestList ); $ i ++) {
74
- if (in_array ($ testManifestList [$ i ], $ failedTestList ) === false ) {
75
- continue ;
76
- }
77
68
if ($ this ->pauseEnabled ()) {
78
69
$ codeceptionCommand = self ::CODECEPT_RUN_FUNCTIONAL . $ testManifestList [$ i ] . ' --debug ' ;
79
70
if ($ i !== count ($ testManifestList ) - 1 ) {
@@ -129,14 +120,7 @@ private function readTestManifestFile()
129
120
*/
130
121
private function readFailedTestFile ($ filePath )
131
122
{
132
- $ failedTests = file ($ filePath , FILE_IGNORE_NEW_LINES );
133
- if ($ failedTests !== false ) {
134
- foreach ($ failedTests as $ key => $ failedTest ) {
135
- list ($ filePath ) = explode (": " , $ failedTest );
136
- $ failedTests [$ key ] = $ filePath ;
137
- }
138
- }
139
- return $ failedTests ;
123
+ return file ($ filePath , FILE_IGNORE_NEW_LINES );
140
124
}
141
125
142
126
/**
0 commit comments