Package hudson.tasks.junit
Class SuiteResult
java.lang.Object
hudson.tasks.junit.SuiteResult
- All Implemented Interfaces:
Serializable
Result of one test suite.
The notion of "test suite" is rather arbitrary in JUnit ant task. It's basically one invocation of junit.
This object is really only used as a part of the persisted object tree.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated.with no replacement. -
Constructor Summary
ConstructorDescriptionSuiteResult
(SuiteResult src) SuiteResult
(String name, String stdout, String stderr, PipelineTestDetails pipelineTestDetails) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCase
(CaseResult cr) Returns theCaseResult
whoseCaseResult.getFullDisplayName()
is the same as the given string.getCases()
float
The possibly-empty list of display names of enclosing blocks within which this suite was generated.The possibly-empty list ofFlowNode.id
s for enclosing blocks within which this suite was generated.getFile()
The absolute path to the original test report.getId()
getName()
The possibly-nullFlowNode.id
this suite was generated in.The properties of this test.long
The stderr of this test.The stdout of this test.void
merge
(SuiteResult sr) Merges another SuiteResult into this one.long
Parses time as epoch milli from time stringvoid
setParent
(TestResult parent) KLUGE.void
setStartTime
(long start)
-
Constructor Details
-
SuiteResult
public SuiteResult(String name, String stdout, String stderr, @CheckForNull PipelineTestDetails pipelineTestDetails) - Since:
- 1.22
-
SuiteResult
-
-
Method Details
-
addCase
-
getName
-
getDuration
@Exported(visibility=9) public float getDuration() -
getNodeId
The possibly-nullFlowNode.id
this suite was generated in.- Since:
- 1.22
-
getEnclosingBlocks
The possibly-empty list ofFlowNode.id
s for enclosing blocks within which this suite was generated.- Since:
- 1.22
-
getEnclosingBlockNames
The possibly-empty list of display names of enclosing blocks within which this suite was generated.- Since:
- 1.22
-
getStdout
The stdout of this test.- Returns:
- the stdout of this test.
- Since:
- 1.281
- See Also:
-
getStderr
The stderr of this test.- Returns:
- the stderr of this test.
- Since:
- 1.281
- See Also:
-
getProperties
The properties of this test.- Returns:
- the properties of this test.
-
getFile
The absolute path to the original test report. OS-dependent.- Returns:
- the absolute path to the original test report.
-
getParent
-
getTimestamp
-
getStartTime
public long getStartTime() -
setStartTime
public void setStartTime(long start) -
getId
-
getCases
-
getPreviousResult
-
getCase
Returns theCaseResult
whoseCaseResult.getFullDisplayName()
is the same as the given string.- Parameters:
caseResultFullDisplayName
- The case FullDisplayName.- Returns:
- the
CaseResult
with the provided name.
-
getClassNames
-
setParent
KLUGE. We have to call this to prevent freeze() from calling c.freeze() on all its children, because that in turn calls c.getOwner(), which requires a non-null parent.- Parameters:
parent
-
-
parseTime
Parses time as epoch milli from time string- Parameters:
time
-- Returns:
- time in epoch milli
-
merge
Merges another SuiteResult into this one.- Parameters:
sr
- the SuiteResult to merge into this one
-