aboutsummaryrefslogtreecommitdiff
path: root/src/org/junit/runner/manipulation/Sortable.java
blob: fec1d0cd6432e5c28431df83aaf4dda44fa713ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.junit.runner.manipulation;

/**
 * Interface for runners that allow sorting of tests. By sorting tests based on when they last failed, most recently
 * failed first, you can reduce the average time to the first test failing. Test sorting should not be used to
 * cope with order dependencies between tests. Tests that are isolated from each other are less
 * expensive to maintain and can be run individually.
 */
public interface Sortable {

	/**
	 * Sorts the tests using <code>sorter</code>
	 * @param sorter the {@link Sorter} to use for sorting the tests
	 */
	public void sort(Sorter sorter);

}