01: package org.junit.runner.manipulation;
02:
03: /**
04: * Interface for runners that allow sorting of tests. By sorting tests based on when they last failed, most recently
05: * failed first, you can reduce the average time to the first test failing. Test sorting should not be used to
06: * cope with order dependencies between tests. Tests that are isolated from each other are less
07: * expensive to maintain and can be run individually.
08: */
09: public interface Sortable {
10:
11: /**
12: * Sorts the tests using <code>sorter</code>
13: * @param sorter the {@link Sorter} to use for sorting the tests
14: */
15: public void sort(Sorter sorter);
16:
17: }
|