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 interface
FirstTestsToRunProvider.ClassObjectDescriptor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FirstTestsToRunProvider
create()
ChangedFiles
getBuildVcsChanges()
VcsChange
getCorrespondingChange(String className)
Returns VcsChange object if the source file of the specified class name is new or modified.List
getRecentlyFailedTestCases()
boolean
isAvailable()
boolean
isGroupIncluded(String groupName)
void
sortTestClasses(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)
-
-