com.atlassian.confluence.testbatching
Class WeightedTestBatchingStrategy
java.lang.Object
com.atlassian.confluence.testbatching.WeightedTestBatchingStrategy
- All Implemented Interfaces:
- TestBatchingStrategy
public class WeightedTestBatchingStrategy
- extends Object
- implements TestBatchingStrategy
An implementation of 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WeightedTestBatchingStrategy
public WeightedTestBatchingStrategy(TestWeightCalculator testWeightCalculator)
partitionTests
public List<List<Class<?>>> partitionTests(List<Class<?>> testClasses,
int numberOfPartitions)
- Specified by:
partitionTests
in interface TestBatchingStrategy
Copyright © 2003–2015 Atlassian. All rights reserved.