MediaWiki master
|
Public Member Functions | |
buildSuites (array $testDescriptors, int $groups, ?int $chunkSize=null) | |
Try to build balanced groups (split_groups) of tests. | |
Definition at line 10 of file TestSuiteBuilder.php.
MediaWiki\Composer\PhpUnitSplitter\TestSuiteBuilder::buildSuites | ( | array | $testDescriptors, |
int | $groups, | ||
?int | $chunkSize = null ) |
Try to build balanced groups (split_groups) of tests.
We have a couple of objectives here:
Information about test duration may be completely absent (if no test cache information is supplied), or partially absent (if the test has not been seen before). We attempt to create similar-duration split-groups using the information we have available, and if anything goes wrong we fall back to just creating split-groups with the same number of tests in them.
array | $testDescriptors | the list of tests that we want to sort into split_groups |
int | $groups | the number of split_groups we are targetting |
?int | $chunkSize | optionally override the size of the 'chunks' into which tests are grouped. If not supplied, the chunk size will depend on the total number of tests. |
Definition at line 38 of file TestSuiteBuilder.php.