Class FlakyTestResultAction
java.lang.Object
com.google.jenkins.flakyTestHandler.plugin.FlakyTestResultAction
- All Implemented Interfaces:
Action,ModelObject,RunAction2
Action for each test run, to record flaky stats for all the tests
- Author:
- Qingzhou Luo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass to hold all the passing/failing/flaky tests for one run -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFlakyTestResultAction(AbstractBuild build, Launcher launcher, TaskListener listener) Construct a FlakyTestResultAction object with Run and BuildListener -
Method Summary
Modifier and TypeMethodDescriptiongetTestIdFromTestResults(Collection<? extends hudson.tasks.test.TestResult> results) Get display names for all the test casesvoidonAttached(Run<?, ?> r) voidvoidsetFlakyRunStats(FlakyTestResultAction.FlakyRunStats stats, TaskListener listener) Overwrites theFlakyTestResultAction.FlakyRunStatsby a new data set.
-
Field Details
-
logger
-
-
Constructor Details
-
FlakyTestResultAction
public FlakyTestResultAction(AbstractBuild build, Launcher launcher, TaskListener listener) throws IOException, InterruptedException Construct a FlakyTestResultAction object with Run and BuildListener- Parameters:
build- this buildlistener- listener of this build- Throws:
IOExceptionInterruptedException
-
-
Method Details
-
onAttached
- Specified by:
onAttachedin interfaceRunAction2
-
onLoad
- Specified by:
onLoadin interfaceRunAction2
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getFlakyRunStats
-
setFlakyRunStats
Overwrites theFlakyTestResultAction.FlakyRunStatsby a new data set. -
getTestIdFromTestResults
public static Set<String> getTestIdFromTestResults(Collection<? extends hudson.tasks.test.TestResult> results) Get display names for all the test cases- Parameters:
results- Collection ofTestResultobjects- Returns:
- the set of display names for all the test cases
-