Class SmartDirtiesTestsSorter
java.lang.Object
com.github.seregamorph.testsmartcontext.SmartDirtiesTestsSorter
The logic of this class can be customized via
META-INF/services/com.github.seregamorph.testsmartcontext.SmartDirtiesTestsSorterdefining subtype of this class overriding methods.
- Author:
- Sergey Chernov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SmartDirtiesTestsSorterprotected intGet the order of non-integration test execution (bigger is later).protected <T> voidinitialSort(List<T> testItems, TestClassExtractor<? super T> testClassExtractor) <T> TestSortResultsort(List<T> testItems, TestClassExtractor<? super T> testClassExtractor) Sorts passed testItems (contains both integration and unit tests) in-place, all tests are sequentially grouped byMergedContextConfigurationcalculated per each test class.
-
Constructor Details
-
SmartDirtiesTestsSorter
protected SmartDirtiesTestsSorter()
-
-
Method Details
-
getInstance
-
sort
Sorts passed testItems (contains both integration and unit tests) in-place, all tests are sequentially grouped byMergedContextConfigurationcalculated per each test class.- Parameters:
testItems-testClassExtractor-- Returns:
- integration test classes lists grouped by config (non-integration tests classes not included)
-
getNonItOrder
protected int getNonItOrder()Get the order of non-integration test execution (bigger is later). Can be either first or last. 0 (first) by default. -
initialSort
-