Package hudson.tasks.test
Class TabulatedResult
java.lang.Object
hudson.model.AbstractModelObject
hudson.tasks.junit.TestObject
hudson.tasks.test.TestObject
hudson.tasks.test.TestResult
hudson.tasks.test.TabulatedResult
- All Implemented Interfaces:
ModelObject
,SearchableModelObject
,SearchItem
,Serializable
- Direct Known Subclasses:
ClassResult
,MetaTabulatedResult
Cumulated result of multiple tests.
On top of TestResult
, this class introduces a tree structure
of TestResult
s.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionblockToTestResult
(PipelineBlockWithTests block, TabulatedResult fullResult) Get an aggregatedTabulatedResult
for all test results in aPipelineBlockWithTests
and any children it may have.abstract Collection<? extends TestResult>
Gets the child test result objects.Get a simple name for the type of children thegetChildren()
method returns, for example "case", "class" or "package".getPipelineBlockWithTests
(String blockId) abstract boolean
boolean
protected final void
populateBlocks
(List<String> innermostFirst, String nodeId, PipelineBlockWithTests nested) Methods inherited from class hudson.tasks.test.TestResult
annotate, getBuildResult, getDuration, getErrorDetails, getErrorStackTrace, getFailCount, getFailedSince, getFailedSinceRun, getFailedTests, getParentAction, getPassCount, getPassedTests, getPreviousResult, getProperties, getResultInRun, getSkipCount, getSkippedTests, getStderr, getStdout, getTitle, isPassed, setParent, setParentAction, tally, toPrettyString
Methods inherited from class hudson.tasks.test.TestObject
doSubmitDescription, findCorrespondingResult, getApi, getDescription, getDurationString, getDynamic, getFullDisplayName, getFullName, getHistory, getId, getName, getParent, getRelativePathFrom, getResultInBuild, getSafeName, getSearchUrl, getTestAction, getTestActions, getTestResult, getTestResultAction, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyName
Methods inherited from class hudson.tasks.junit.TestObject
getOwner, getRun
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.ModelObject
getDisplayName
-
Field Details
-
testsByBlock
TODO: javadoc
-
-
Constructor Details
-
TabulatedResult
public TabulatedResult()
-
-
Method Details
-
getChildren
Gets the child test result objects.- Returns:
- the child test result objects.
- See Also:
-
hasChildren
public abstract boolean hasChildren() -
hasMultipleBlocks
public boolean hasMultipleBlocks() -
getPipelineBlockWithTests
-
populateBlocks
protected final void populateBlocks(@NonNull List<String> innermostFirst, @NonNull String nodeId, @CheckForNull PipelineBlockWithTests nested) -
blockToTestResult
@NonNull public TabulatedResult blockToTestResult(@NonNull PipelineBlockWithTests block, @NonNull TabulatedResult fullResult) Get an aggregatedTabulatedResult
for all test results in aPipelineBlockWithTests
and any children it may have. Default implementation just returns the original. -
getChildTitle
-
getChildType
Get a simple name for the type of children thegetChildren()
method returns, for example "case", "class" or "package".- Returns:
- the type of children this result has, all lowercase.
-