com.atlassian.confluence.testbatching.junitreport
Class JUnitTestTimeWeightCalculator
java.lang.Object
com.atlassian.confluence.testbatching.junitreport.JUnitTestTimeWeightCalculator
- All Implemented Interfaces:
- TestWeightCalculator
public class JUnitTestTimeWeightCalculator
- extends Object
- implements TestWeightCalculator
A TestWeightCalculator which uses the test timings recorded in
JUnit test reports to calculate the "weight" of individual test classes. Tests that take longer to run according to
the report are given a heavier weight.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnitTestTimeWeightCalculator
public JUnitTestTimeWeightCalculator(JUnitTestTimings testTimings)
calculateTestWeight
public long calculateTestWeight(Class<?> testClass)
- Specified by:
calculateTestWeight in interface TestWeightCalculator
- Returns:
- the calculated "weight" of the given test class. The returned values from this class are the predicted
execution time of all of the tests in the class, in milliseconds, although this should not be relied on.
Copyright © 2003–2015 Atlassian. All rights reserved.