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
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.with no replacement. -
Constructor Summary
ConstructorsConstructorDescriptionSuiteResult(SuiteResult src) SuiteResult(String name, String stdout, String stderr, PipelineTestDetails pipelineTestDetails) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCase(CaseResult cr) Returns theCaseResultwhoseCaseResult.getFullDisplayName()is the same as the given string.getCases()floatThe possibly-empty list of display names of enclosing blocks within which this suite was generated.The possibly-empty list ofFlowNode.ids for enclosing blocks within which this suite was generated.getFile()The absolute path to the original test report.getId()getName()The possibly-nullFlowNode.idthis suite was generated in.The properties of this test.longThe stderr of this test.The stdout of this test.voidmerge(SuiteResult sr) Merges another SuiteResult into this one.longParses time as epoch milli from time stringvoidsetParent(TestResult parent) KLUGE.voidsetStartTime(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.idthis suite was generated in.- Since:
- 1.22
-
getEnclosingBlocks
The possibly-empty list ofFlowNode.ids 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 theCaseResultwhoseCaseResult.getFullDisplayName()is the same as the given string.- Parameters:
caseResultFullDisplayName- The case FullDisplayName.- Returns:
- the
CaseResultwith 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
-