Package org.tap4j.plugin
Class TapResult
java.lang.Object
org.tap4j.plugin.TapResult
- All Implemented Interfaces:
ModelObject,Serializable
- Since:
- 1.0
- Author:
- Bruno P. Kinoshita - ...
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyWithExtraTestSets(List<TestSetMap> testSets) createDiagnosticTable(String tapFile, Map<String, Object> diagnostic) Called from TapResult/index.jellyvoiddoDownloadAttachment(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) escapeHTML(String html) intfloatintgetName()Run<?,?> getOwner()Run<?,?> intintintgetToDo()intgetTotal()booleanbooleanbooleanbooleanbooleanisTestResult(Object tapResult) voidvoidsetShowOnlyFailures(Boolean showOnlyFailures) voidtally()
-
Constructor Details
-
TapResult
-
-
Method Details
-
copyWithExtraTestSets
-
getShowOnlyFailures
-
setShowOnlyFailures
-
getTodoIsFailure
- Returns:
- the todoIsFailure
-
getIncludeCommentDiagnostics
- Returns:
- the includeCommentDiagnostics
-
getValidateNumberOfTests
-
tally
public void tally() -
getOwner
-
setOwner
- Parameters:
owner- the owner to set
-
getOwningRun
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public Run<?,?> getOwningRun() -
getTestSets
-
isEmptyTestSet
public boolean isEmptyTestSet() -
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
Called from TapResult/index.jelly- Parameters:
tapFile- location of TAP filediagnostic- TAP diagnostics- Returns:
- diagnostic table
-
isTestResult
- Parameters:
tapResult- the tap result object- Returns:
trueif the object is not null and an instance ofTestResult
-
isBailOut
- Parameters:
tapResult- the tap result object- Returns:
trueif the object is not null and an instance ofBailOut
-
isComment
-
escapeHTML
-
getName
- Returns:
- the name
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject
-
doDownloadAttachment
public void doDownloadAttachment(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
-