Class FlakyPackageResult
java.lang.Object
hudson.model.AbstractModelObject
hudson.tasks.junit.TestObject
hudson.tasks.test.TestObject
hudson.tasks.test.TestResult
hudson.tasks.test.TabulatedResult
hudson.tasks.test.MetaTabulatedResult
com.google.jenkins.flakyTestHandler.junit.FlakyPackageResult
- All Implemented Interfaces:
ModelObject
,SearchableModelObject
,SearchItem
,Serializable
,Comparable<FlakyPackageResult>
public final class FlakyPackageResult
extends hudson.tasks.test.MetaTabulatedResult
implements Comparable<FlakyPackageResult>
Cumulative test result for a package augmented with flaky information.
Majority of code copied from hudson.tasks.junit.PackageResult
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/tasks/junit/
PackageResult.java
- Author:
- Qingzhou Luo
- See Also:
-
Field Summary
Fields inherited from class hudson.tasks.test.TabulatedResult
testsByBlock
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(FlakyPackageResult that) boolean
hudson.tasks.test.TestResult
getClassResult
(String name) float
getDynamic
(String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) int
Returns a list of the failed cases, in no particular sort orderint
Gets the "children" of this test result that were flakygetName()
AbstractBuild<?,
?> getOwner()
int
Collection<? extends hudson.tasks.test.TestResult>
Gets the "children" of this test result that passed without a flakeint
Collection<? extends hudson.tasks.test.TestResult>
Gets the "children" of this test result that were skippedgetTitle()
int
boolean
Whether this test result has children.int
hashCode()
boolean
isPassed()
void
tally()
Recount my childrenMethods inherited from class hudson.tasks.test.TabulatedResult
blockToTestResult, getChildType, getPipelineBlockWithTests, hasMultipleBlocks, populateBlocks
Methods inherited from class hudson.tasks.test.TestResult
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getParentAction, getPreviousResult, getProperties, getResultInRun, getStderr, getStdout, setParent, setParentAction, toPrettyString
Methods inherited from class hudson.tasks.test.TestObject
doSubmitDescription, getApi, getDescription, getDurationString, getFullDisplayName, getFullName, getHistory, getId, getRelativePathFrom, getResultInBuild, getSearchUrl, getTestAction, getTestActions, getTestResult, getTestResultAction, getTopLevelTestResult, getUrl, safe, setDescription, uniquifyName
Methods inherited from class hudson.tasks.junit.TestObject
getRun
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Method Details
-
getOwner
- Overrides:
getOwner
in classhudson.tasks.junit.TestObject
-
getParent
- Specified by:
getParent
in classhudson.tasks.test.TestObject
-
getName
- Overrides:
getName
in classhudson.tasks.test.TestObject
-
getSafeName
- Overrides:
getSafeName
in classhudson.tasks.test.TestObject
-
findCorrespondingResult
- Specified by:
findCorrespondingResult
in classhudson.tasks.test.TestObject
-
getTitle
- Overrides:
getTitle
in classhudson.tasks.test.TestResult
-
getChildTitle
- Overrides:
getChildTitle
in classhudson.tasks.test.TabulatedResult
-
getDuration
public float getDuration()- Overrides:
getDuration
in classhudson.tasks.test.TestResult
-
getPassCount
@Exported public int getPassCount()- Overrides:
getPassCount
in classhudson.tasks.test.TestResult
-
getFailCount
@Exported public int getFailCount()- Overrides:
getFailCount
in classhudson.tasks.test.TestResult
-
getSkipCount
@Exported public int getSkipCount()- Overrides:
getSkipCount
in classhudson.tasks.test.TestResult
-
getFlakeCount
@Exported public int getFlakeCount() -
getTotalCount
public int getTotalCount()- Overrides:
getTotalCount
in classhudson.tasks.test.TestObject
-
getDynamic
public Object getDynamic(String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) - Overrides:
getDynamic
in classhudson.tasks.test.TestObject
-
getClassResult
-
getChildren
- Specified by:
getChildren
in classhudson.tasks.test.TabulatedResult
-
hasChildren
public boolean hasChildren()Whether this test result has children.- Specified by:
hasChildren
in classhudson.tasks.test.TabulatedResult
-
getFailedTests
Returns a list of the failed cases, in no particular sort order- Specified by:
getFailedTests
in classhudson.tasks.test.MetaTabulatedResult
-
getPassedTests
Gets the "children" of this test result that passed without a flake- Overrides:
getPassedTests
in classhudson.tasks.test.TestResult
- Returns:
- the children of this test result, if any, or an empty collection
-
getSkippedTests
Gets the "children" of this test result that were skipped- Overrides:
getSkippedTests
in classhudson.tasks.test.TestResult
- Returns:
- the children of this test result, if any, or an empty list
-
getFlakyTests
Gets the "children" of this test result that were flaky- Returns:
- the children of this test result, if any, or an empty list
-
isPassed
public boolean isPassed()- Overrides:
isPassed
in classhudson.tasks.test.TestResult
- Returns:
- true if every test was not skipped and every test did not fail, false otherwise.
-
tally
public void tally()Recount my children- Overrides:
tally
in classhudson.tasks.test.TestResult
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FlakyPackageResult>
-
equals
-
hashCode
public int hashCode() -
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
-