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 TypeMethodDescriptionintcompareTo(FlakyPackageResult that) booleanhudson.tasks.test.TestResultgetClassResult(String name) floatgetDynamic(String name, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) intReturns a list of the failed cases, in no particular sort orderintGets the "children" of this test result that were flakygetName()AbstractBuild<?,?> getOwner()intCollection<? extends hudson.tasks.test.TestResult>Gets the "children" of this test result that passed without a flakeintCollection<? extends hudson.tasks.test.TestResult>Gets the "children" of this test result that were skippedgetTitle()intbooleanWhether this test result has children.inthashCode()booleanisPassed()voidtally()Recount my childrenMethods inherited from class hudson.tasks.test.TabulatedResult
blockToTestResult, getChildType, getPipelineBlockWithTests, hasMultipleBlocks, populateBlocksMethods inherited from class hudson.tasks.test.TestResult
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getParentAction, getPreviousResult, getProperties, getResultInRun, getStderr, getStdout, setParent, setParentAction, toPrettyStringMethods 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, uniquifyNameMethods inherited from class hudson.tasks.junit.TestObject
getRunMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendError
-
Method Details
-
getOwner
- Overrides:
getOwnerin classhudson.tasks.junit.TestObject
-
getParent
- Specified by:
getParentin classhudson.tasks.test.TestObject
-
getName
- Overrides:
getNamein classhudson.tasks.test.TestObject
-
getSafeName
- Overrides:
getSafeNamein classhudson.tasks.test.TestObject
-
findCorrespondingResult
- Specified by:
findCorrespondingResultin classhudson.tasks.test.TestObject
-
getTitle
- Overrides:
getTitlein classhudson.tasks.test.TestResult
-
getChildTitle
- Overrides:
getChildTitlein classhudson.tasks.test.TabulatedResult
-
getDuration
public float getDuration()- Overrides:
getDurationin classhudson.tasks.test.TestResult
-
getPassCount
@Exported public int getPassCount()- Overrides:
getPassCountin classhudson.tasks.test.TestResult
-
getFailCount
@Exported public int getFailCount()- Overrides:
getFailCountin classhudson.tasks.test.TestResult
-
getSkipCount
@Exported public int getSkipCount()- Overrides:
getSkipCountin classhudson.tasks.test.TestResult
-
getFlakeCount
@Exported public int getFlakeCount() -
getTotalCount
public int getTotalCount()- Overrides:
getTotalCountin classhudson.tasks.test.TestObject
-
getDynamic
public Object getDynamic(String name, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) - Overrides:
getDynamicin classhudson.tasks.test.TestObject
-
getClassResult
-
getChildren
- Specified by:
getChildrenin classhudson.tasks.test.TabulatedResult
-
hasChildren
public boolean hasChildren()Whether this test result has children.- Specified by:
hasChildrenin classhudson.tasks.test.TabulatedResult
-
getFailedTests
Returns a list of the failed cases, in no particular sort order- Specified by:
getFailedTestsin classhudson.tasks.test.MetaTabulatedResult
-
getPassedTests
Gets the "children" of this test result that passed without a flake- Overrides:
getPassedTestsin 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:
getSkippedTestsin 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:
isPassedin 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:
tallyin classhudson.tasks.test.TestResult
-
compareTo
- Specified by:
compareToin interfaceComparable<FlakyPackageResult>
-
equals
-
hashCode
public int hashCode() -
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject
-