public final class PackageResult extends MetaTabulatedResult implements Comparable<PackageResult>
testsByBlock
Constructor and Description |
---|
PackageResult(TestResult parent,
String packageName) |
Modifier and Type | Method and Description |
---|---|
void |
add(CaseResult r) |
int |
compareTo(PackageResult that) |
boolean |
equals(Object obj) |
TestResult |
findCorrespondingResult(String id)
Find the test result corresponding to the one identified by
id
within this test result. |
Collection<ClassResult> |
getChildren()
Gets the child test result objects.
|
String |
getChildTitle() |
ClassResult |
getClassResult(String name) |
String |
getDisplayName() |
float |
getDuration()
Time it took to run this test.
|
Object |
getDynamic(String name,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
int |
getFailCount()
Gets the total number of failed tests.
|
List<CaseResult> |
getFailedTests()
Returns a list of the failed cases, in no particular
sort order
|
List<CaseResult> |
getFailedTestsSortedByAge()
Returns a list of the failed cases, sorted by age.
|
String |
getName()
Gets the name of this object.
|
TestResult |
getParent()
Reverse pointer of
TabulatedResult.getChildren() . |
int |
getPassCount()
Gets the total number of passed tests.
|
List<CaseResult> |
getPassedTests()
Gets the "children" of this test result that passed
|
hudson.model.Run<?,?> |
getRun() |
String |
getSafeName()
Gets the version of
TestObject.getName() that's URL-safe. |
int |
getSkipCount()
Gets the total number of skipped tests.
|
List<CaseResult> |
getSkippedTests()
Gets the "children" of this test result that were skipped
|
String |
getTitle()
Gets the human readable title of this result object.
|
boolean |
hasChildren()
Whether this test result has children.
|
int |
hashCode() |
boolean |
isPassed() |
void |
tally()
Recount my children
|
blockToTestResult, getPipelineBlockWithTests, hasMultipleBlocks, populateBlocks
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getParentAction, getPreviousResult, getResultInRun, getStderr, getStdout, setParent, setParentAction, toPrettyString
doSubmitDescription, getApi, getDescription, getDurationString, getFullDisplayName, getFullName, getHistory, getId, getRelativePathFrom, getResultInBuild, getSearchUrl, getTestAction, getTestActions, getTestResult, getTestResultAction, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyName
getOwner
public PackageResult(TestResult parent, String packageName)
public hudson.model.Run<?,?> getRun()
getRun
in class TestObject
public TestResult getParent()
TestObject
TabulatedResult.getChildren()
.getParent
in class TestObject
TestObject
.@Exported(visibility=999) public String getName()
TestObject
getName
in class TestObject
public String getSafeName()
TestObject
TestObject.getName()
that's URL-safe.getSafeName
in class TestObject
public TestResult findCorrespondingResult(String id)
TestObject
id
within this test result.findCorrespondingResult
in class TestObject
id
- The path to the original test resultpublic String getTitle()
TestResult
getTitle
in class TestResult
public String getChildTitle()
getChildTitle
in class TabulatedResult
public float getDuration()
TestResult
getDuration
in class TestResult
@Exported public int getPassCount()
TestResult
getPassCount
in class TestResult
@Exported public int getFailCount()
TestResult
getFailCount
in class TestResult
@Exported public int getSkipCount()
TestResult
getSkipCount
in class TestResult
public Object getDynamic(String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
getDynamic
in class TestObject
public ClassResult getClassResult(String name)
@Exported(name="child") public Collection<ClassResult> getChildren()
TabulatedResult
getChildren
in class TabulatedResult
TestObject.getParent()
public boolean hasChildren()
hasChildren
in class TabulatedResult
public List<CaseResult> getFailedTests()
getFailedTests
in class MetaTabulatedResult
public List<CaseResult> getFailedTestsSortedByAge()
public List<CaseResult> getPassedTests()
getPassedTests
in class TestResult
public List<CaseResult> getSkippedTests()
getSkippedTests
in class TestResult
public boolean isPassed()
isPassed
in class TestResult
public void add(CaseResult r)
public void tally()
tally
in class TestResult
public int compareTo(PackageResult that)
compareTo
in interface Comparable<PackageResult>
public String getDisplayName()
getDisplayName
in interface hudson.model.ModelObject
Copyright © 2016–2022. All rights reserved.