public class WeightedTestBatchingStrategy extends Object implements TestBatchingStrategy
TestBatchingStrategy which partitions
the tests based on the calculated "weight" of each test class, trying to keep the total weight in each
partition as even as possible.
A TestWeightCalculator is used to calculate the weight of individual
test classes.| Constructor and Description |
|---|
WeightedTestBatchingStrategy(TestWeightCalculator testWeightCalculator) |
| Modifier and Type | Method and Description |
|---|---|
List<List<Class<?>>> |
partitionTests(List<Class<?>> testClasses,
int numberOfPartitions) |
public WeightedTestBatchingStrategy(TestWeightCalculator testWeightCalculator)
public List<List<Class<?>>> partitionTests(List<Class<?>> testClasses, int numberOfPartitions)
partitionTests in interface TestBatchingStrategyCopyright © 2003–2015 Atlassian. All rights reserved.