Class JavaClassName
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<TestMode>
-
- org.jenkinsci.plugins.parallel_test_executor.testmode.TestMode
-
- org.jenkinsci.plugins.parallel_test_executor.testmode.JavaClassName
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<TestMode>
- Direct Known Subclasses:
JavaTestCaseName
public class JavaClassName extends TestMode
This mode works best with java projects.Each exclusion/inclusion generates two lines by replacing "." with "/" in the fully qualified test class name and appending ".java" to one line and ".class" to the second line.
It is also able to estimate tests to run from the workspace content if no historical context could be found.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JavaClassName.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description JavaClassName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,TestEntity>
estimate(FilePath workspace, TaskListener listener)
This method will be called if no historical test results can be found.Map<String,TestEntity>
getTestEntitiesMap(hudson.tasks.junit.ClassResult classResult)
String
getWord()
boolean
isSplitByCase()
-
Methods inherited from class org.jenkinsci.plugins.parallel_test_executor.testmode.TestMode
fixDefault, getDefault
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
isSplitByCase
public boolean isSplitByCase()
-
getTestEntitiesMap
@NonNull public Map<String,TestEntity> getTestEntitiesMap(@NonNull hudson.tasks.junit.ClassResult classResult)
- Specified by:
getTestEntitiesMap
in classTestMode
- Parameters:
classResult
- The initial class result- Returns:
- a Map of test entities, keyed by their unique key
-
estimate
public Map<String,TestEntity> estimate(FilePath workspace, @NonNull TaskListener listener) throws InterruptedException
Description copied from class:TestMode
This method will be called if no historical test results can be found. In that case, an estimate can be provided from the workspace content.- Overrides:
estimate
in classTestMode
- Parameters:
workspace
- The current directory where tests are expected to be found.listener
- The build listener if any output needs to be logged.- Returns:
- a Map of test entities, keyed by their unique key
- Throws:
InterruptedException
- if the build get interrupted while executing this method.
-
-