@Extension public class JUnitParser extends TestResultParser
Constructor and Description |
---|
JUnitParser()
Deprecated.
|
JUnitParser(boolean keepLongStdio)
Deprecated.
|
JUnitParser(boolean keepLongStdio,
boolean allowEmptyResults) |
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName()
Returns a human readable name of the parser, like "JUnit Parser".
|
String |
getTestResultLocationMessage()
This text is used in the UI prompt for the GLOB that specifies files to be parsed by this parser.
|
TestResult |
parse(String testResultLocations,
AbstractBuild build,
Launcher launcher,
TaskListener listener)
Deprecated.
|
TestResult |
parseResult(String testResultLocations,
Run<?,?> build,
FilePath workspace,
Launcher launcher,
TaskListener listener)
Deprecated.
|
TestResult |
parseResult(String testResultLocations,
Run<?,?> build,
PipelineTestDetails pipelineTestDetails,
FilePath workspace,
Launcher launcher,
TaskListener listener)
Parses the specified set of files and builds a
TestResult object that represents them. |
all
@Deprecated public JUnitParser()
@Deprecated public JUnitParser(boolean keepLongStdio)
keepLongStdio
- if true, retain a suite's complete stdout/stderr even if this is huge and the suite passedpublic JUnitParser(boolean keepLongStdio, boolean allowEmptyResults)
keepLongStdio
- if true, retain a suite's complete stdout/stderr even if this is huge and the suite passedallowEmptyResults
- if true, empty results are allowedpublic String getDisplayName()
TestResultParser
getDisplayName
in class TestResultParser
public String getTestResultLocationMessage()
TestResultParser
getTestResultLocationMessage
in class TestResultParser
@Deprecated public TestResult parse(String testResultLocations, AbstractBuild build, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
parse
in class TestResultParser
InterruptedException
IOException
@Deprecated public TestResult parseResult(String testResultLocations, Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
parseResult
in class TestResultParser
InterruptedException
IOException
public TestResult parseResult(String testResultLocations, Run<?,?> build, PipelineTestDetails pipelineTestDetails, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
TestResultParser
TestResult
object that represents them.
The implementation is encouraged to do the following:
parseResult
in class TestResultParser
testResultLocations
- GLOB pattern relative to the workspace
that
specifies the locations of the test result files. Never null.build
- Build for which these tests are parsed. Never null.pipelineTestDetails
- A PipelineTestDetails
instance containing Pipeline-related additional arguments.workspace
- the workspace in which tests can be foundlauncher
- Can be used to fork processes on the machine where the build is running. Never null.listener
- Use this to report progress and other problems. Never null.TestResult
object representing the provided files and builds.InterruptedException
- If the user cancels the build, it will be received as a thread interruption. Do not catch
it, and instead just forward that through the call stack.IOException
- If you don't care about handling exceptions gracefully, you can just throw IOException
and let the default exception handling in Hudson takes care of it.AbortException
- If you encounter an error that you handled gracefully, throw this exception and Hudson
will not show a stack trace.Copyright © 2016–2020. All rights reserved.