Class 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 of TestResults.

Author:
Kohsuke Kawaguchi
See Also:
  • Field Details

  • Constructor Details

    • TabulatedResult

      public TabulatedResult()
  • Method Details

    • getChildren

      public abstract Collection<? extends TestResult> 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

      @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 aggregated TabulatedResult for all test results in a PipelineBlockWithTests 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 the getChildren() method returns, for example "case", "class" or "package".
      Returns:
      the type of children this result has, all lowercase.