Package jetbrains.buildServer.agent
Class FirstTestsToRunProvider
- java.lang.Object
-
- jetbrains.buildServer.agent.FirstTestsToRunProvider
-
public class FirstTestsToRunProvider extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFirstTestsToRunProvider.ClassObjectDescriptor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FirstTestsToRunProvidercreate()ChangedFilesgetBuildVcsChanges()VcsChangegetCorrespondingChange(String className)Returns VcsChange object if the source file of the specified class name is new or modified.ListgetRecentlyFailedTestCases()booleanisAvailable()booleanisGroupIncluded(String groupName)voidsortTestClasses(List testClasses, FirstTestsToRunProvider.ClassObjectDescriptor classObjectDescriptor)Sorts test classes according by placing recently failed and modified tests at the top of the list.
-
-
-
Method Detail
-
create
public static FirstTestsToRunProvider create()
-
isAvailable
public boolean isAvailable()
-
getBuildVcsChanges
public ChangedFiles getBuildVcsChanges()
-
getRecentlyFailedTestCases
public List getRecentlyFailedTestCases()
- Returns:
- list of recently failed test classes.
-
getCorrespondingChange
public VcsChange getCorrespondingChange(String className)
Returns VcsChange object if the source file of the specified class name is new or modified.- Parameters:
className- name of the class- Returns:
- see above
-
sortTestClasses
public void sortTestClasses(List testClasses, FirstTestsToRunProvider.ClassObjectDescriptor classObjectDescriptor)
Sorts test classes according by placing recently failed and modified tests at the top of the list. Order is: * Classes affected by personal vcs changes * Classes affected by other vcs changes * Classes with recently failed tests * All other classes- Parameters:
testClasses- classes to sortclassObjectDescriptor- describes class objects which should be sorted
-
isGroupIncluded
public boolean isGroupIncluded(String groupName)
-
-