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.jellyvoid
doDownloadAttachment
(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) escapeHTML
(String html) int
float
int
getName()
Run<?,
?> getOwner()
Run<?,
?> int
int
int
getToDo()
int
getTotal()
boolean
boolean
boolean
boolean
boolean
isTestResult
(Object tapResult) void
void
setShowOnlyFailures
(Boolean showOnlyFailures) void
tally()
-
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:
true
if the object is not null and an instance ofTestResult
-
isBailOut
- Parameters:
tapResult
- the tap result object- Returns:
true
if the object is not null and an instance ofBailOut
-
isComment
-
escapeHTML
-
getName
- Returns:
- the name
-
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
-
doDownloadAttachment
public void doDownloadAttachment(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
-