|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.junit.experimental.max.MaxCore
public class MaxCore
A replacement for JUnitCore, which keeps track of runtime and failure history, and reorders tests to maximize the chances that a failing test occurs early in the test run. The rules for sorting are:
Method Summary | |
---|---|
static MaxCore |
forFolder(String folderName)
Deprecated. use storedLocally() |
Result |
run(Class<?> testClass)
Run all the tests in class . |
Result |
run(Request request)
Run all the tests contained in request . |
Result |
run(Request request,
JUnitCore core)
Run all the tests contained in request . |
List<Description> |
sortedLeavesForTest(Request request)
|
Request |
sortRequest(Request request)
|
static MaxCore |
storedLocally(File storedResults)
Create a new MaxCore from a serialized file stored at storedResults |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@Deprecated public static MaxCore forFolder(String folderName)
public static MaxCore storedLocally(File storedResults)
public Result run(Class<?> testClass)
class
.
Result
describing the details of the test run and the failed tests.public Result run(Request request)
request
.
request
- the request describing tests
Result
describing the details of the test run and the failed tests.public Result run(Request request, JUnitCore core)
request
.
This variant should be used if core
has attached listeners that this
run should notify.
request
- the request describing testscore
- a JUnitCore to delegate to.
Result
describing the details of the test run and the failed tests.public Request sortRequest(Request request)
public List<Description> sortedLeavesForTest(Request request)
request
- a request to run
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |