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
Modifier and TypeClassDescriptionstatic class
Class to hold all the passing/failing/flaky tests for one run -
Field Summary
-
Constructor Summary
ConstructorDescriptionFlakyTestResultAction
(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 casesvoid
onAttached
(Run<?, ?> r) void
void
setFlakyRunStats
(FlakyTestResultAction.FlakyRunStats stats, TaskListener listener) Overwrites theFlakyTestResultAction.FlakyRunStats
by 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:
IOException
InterruptedException
-
-
Method Details
-
onAttached
- Specified by:
onAttached
in interfaceRunAction2
-
onLoad
- Specified by:
onLoad
in interfaceRunAction2
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
getFlakyRunStats
-
setFlakyRunStats
Overwrites theFlakyTestResultAction.FlakyRunStats
by 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 ofTestResult
objects- Returns:
- the set of display names for all the test cases
-