public abstract class TabulatedResult extends TestResult
On top of TestResult
, this class introduces a tree structure
of TestResult
s.
Modifier and Type | Field and Description |
---|---|
protected Map<String,PipelineBlockWithTests> |
testsByBlock
TODO: javadoc
|
Constructor and Description |
---|
TabulatedResult() |
Modifier and Type | Method and Description |
---|---|
TabulatedResult |
blockToTestResult(PipelineBlockWithTests block,
TabulatedResult fullResult)
Get an aggregated
TabulatedResult for all test results in a PipelineBlockWithTests and any children it may have. |
abstract Collection<? extends TestResult> |
getChildren()
Gets the child test result objects.
|
String |
getChildTitle() |
PipelineBlockWithTests |
getPipelineBlockWithTests(String blockId) |
abstract boolean |
hasChildren() |
boolean |
hasMultipleBlocks() |
protected void |
populateBlocks(List<String> innermostFirst,
String nodeId,
PipelineBlockWithTests nested) |
annotate, getBuildResult, getDuration, getErrorDetails, getErrorStackTrace, getFailCount, getFailedSince, getFailedSinceRun, getFailedTests, getParentAction, getPassCount, getPassedTests, getPreviousResult, getResultInRun, getSkipCount, getSkippedTests, getStderr, getStdout, getTitle, isPassed, setParent, setParentAction, tally, toPrettyString
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
getOwner, getRun
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
protected transient Map<String,PipelineBlockWithTests> testsByBlock
public abstract Collection<? extends TestResult> getChildren()
TestObject.getParent()
public abstract boolean hasChildren()
public boolean hasMultipleBlocks()
@CheckForNull public PipelineBlockWithTests getPipelineBlockWithTests(@NonNull String blockId)
protected final void populateBlocks(@NonNull List<String> innermostFirst, @NonNull String nodeId, @CheckForNull PipelineBlockWithTests nested)
@NonNull public TabulatedResult blockToTestResult(@NonNull PipelineBlockWithTests block, @NonNull TabulatedResult fullResult)
TabulatedResult
for all test results in a PipelineBlockWithTests
and any children it may have.
Default implementation just returns the original.public String getChildTitle()
Copyright © 2016–2022. All rights reserved.