Class TapResult

java.lang.Object
org.tap4j.plugin.TapResult
All Implemented Interfaces:
ModelObject, Serializable

public class TapResult extends Object implements ModelObject, Serializable
Since:
1.0
Author:
Bruno P. Kinoshita - ...
See Also:
  • Constructor Details

  • Method Details

    • copyWithExtraTestSets

      public TapResult copyWithExtraTestSets(List<TestSetMap> testSets)
    • getShowOnlyFailures

      public Boolean getShowOnlyFailures()
    • setShowOnlyFailures

      public void setShowOnlyFailures(Boolean showOnlyFailures)
    • getTodoIsFailure

      public Boolean getTodoIsFailure()
      Returns:
      the todoIsFailure
    • getIncludeCommentDiagnostics

      public Boolean getIncludeCommentDiagnostics()
      Returns:
      the includeCommentDiagnostics
    • getValidateNumberOfTests

      public Boolean getValidateNumberOfTests()
    • tally

      public void tally()
    • getOwner

      @Nullable public Run<?,?> getOwner()
    • setOwner

      public void setOwner(Run<?,?> owner)
      Parameters:
      owner - the owner to set
    • getTestSets

      public List<TestSetMap> getTestSets()
    • isEmptyTestSet

      public boolean isEmptyTestSet()
    • getParseErrorTestSets

      public List<TestSetMap> getParseErrorTestSets()
      Returns:
      the parseErrorTestSets
    • hasParseErrors

      public boolean hasParseErrors()
    • getFailed

      public int getFailed()
    • getSkipped

      public int getSkipped()
    • getToDo

      public int getToDo()
    • getPassed

      public int getPassed()
    • getBailOuts

      public int getBailOuts()
    • getTotal

      public int getTotal()
    • getDuration

      public float getDuration()
    • createDiagnosticTable

      public String createDiagnosticTable(String tapFile, Map<String,Object> diagnostic)
      Called from TapResult/index.jelly
      Parameters:
      tapFile - location of TAP file
      diagnostic - TAP diagnostics
      Returns:
      diagnostic table
    • isTestResult

      public boolean isTestResult(Object tapResult)
      Parameters:
      tapResult - the tap result object
      Returns:
      true if the object is not null and an instance of TestResult
    • isBailOut

      public boolean isBailOut(Object tapResult)
      Parameters:
      tapResult - the tap result object
      Returns:
      true if the object is not null and an instance of BailOut
    • isComment

      public boolean isComment(Object tapResult)
    • escapeHTML

      public String escapeHTML(String html)
    • getName

      @Exported(visibility=999) public String getName()
      Returns:
      the name
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface ModelObject
    • doDownloadAttachment

      public void doDownloadAttachment(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)