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
public abstract class TabulatedResult extends TestResult
Cumulated result of multiple tests.On top of
TestResult
, this class introduces a tree structure ofTestResult
s.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,PipelineBlockWithTests>
testsByBlock
TODO: javadoc
-
Constructor Summary
Constructors Constructor Description TabulatedResult()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description TabulatedResult
blockToTestResult(PipelineBlockWithTests block, TabulatedResult fullResult)
Get an aggregatedTabulatedResult
for all test results in aPipelineBlockWithTests
and any children it may have.abstract Collection<? extends TestResult>
getChildren()
Gets the child test result objects.String
getChildTitle()
String
getChildType()
Get a simple name for the type of children thegetChildren()
method returns, for example "case", "class" or "package".PipelineBlockWithTests
getPipelineBlockWithTests(String blockId)
abstract boolean
hasChildren()
boolean
hasMultipleBlocks()
protected 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 Detail
-
testsByBlock
protected transient Map<String,PipelineBlockWithTests> testsByBlock
TODO: javadoc
-
-
Method Detail
-
getChildren
public abstract Collection<? extends TestResult> getChildren()
Gets the child test result objects.- Returns:
- the child test result objects.
- See Also:
TestObject.getParent()
-
hasChildren
public abstract boolean hasChildren()
-
hasMultipleBlocks
public boolean hasMultipleBlocks()
-
getPipelineBlockWithTests
@CheckForNull public PipelineBlockWithTests getPipelineBlockWithTests(@NonNull String blockId)
-
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
public String getChildTitle()
-
getChildType
public String 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.
-
-