|
36 | 36 | * @param non-empty-string $xmlConfigurationFile |
37 | 37 | * @param list<non-empty-string> $includeTestSuites |
38 | 38 | * @param list<non-empty-string> $excludeTestSuites |
| 39 | + * @param positive-int $repeatTimes |
39 | 40 | * |
40 | 41 | * @throws RuntimeException |
41 | 42 | * @throws TestDirectoryNotFoundException |
42 | 43 | * @throws TestFileNotFoundException |
43 | 44 | */ |
44 | | - public function map(string $xmlConfigurationFile, TestSuiteCollection $configuredTestSuites, array $includeTestSuites, array $excludeTestSuites): TestSuiteObject |
| 45 | + public function map(string $xmlConfigurationFile, TestSuiteCollection $configuredTestSuites, array $includeTestSuites, array $excludeTestSuites, int $repeatTimes = 1): TestSuiteObject |
45 | 46 | { |
46 | 47 | try { |
47 | 48 | $result = TestSuiteObject::empty($xmlConfigurationFile); |
@@ -101,7 +102,7 @@ public function map(string $xmlConfigurationFile, TestSuiteCollection $configure |
101 | 102 | $processed[$file] = $testSuiteName; |
102 | 103 | $empty = false; |
103 | 104 |
|
104 | | - $testSuite->addTestFile($file, $groups); |
| 105 | + $testSuite->addTestFile($file, $groups, $repeatTimes); |
105 | 106 | } |
106 | 107 | } |
107 | 108 |
|
@@ -130,11 +131,11 @@ public function map(string $xmlConfigurationFile, TestSuiteCollection $configure |
130 | 131 | $processed[$file->path()] = $testSuiteName; |
131 | 132 | $empty = false; |
132 | 133 |
|
133 | | - $testSuite->addTestFile($file->path(), $file->groups()); |
| 134 | + $testSuite->addTestFile($file->path(), $file->groups(), $repeatTimes); |
134 | 135 | } |
135 | 136 |
|
136 | 137 | if (!$empty) { |
137 | | - $result->addTest($testSuite); |
| 138 | + $result->addTest($testSuite, [], $repeatTimes); |
138 | 139 | } |
139 | 140 | } |
140 | 141 |
|
|
0 commit comments