@Extension public class CucumberJSONParser extends DefaultTestResultParserImpl
TestResult so that Jenkins will display the results.IGNORE_TIMESTAMP_CHECK| Constructor and Description |
|---|
CucumberJSONParser() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName() |
protected CucumberTestResult |
parse(List<File> reportFiles,
hudson.model.TaskListener listener)
This method is executed on the slave that has the report files to parse test reports and builds
TestResult. |
CucumberTestResult |
parse(String testResultLocations,
hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
public String getDisplayName()
getDisplayName in class hudson.tasks.test.TestResultParserprotected CucumberTestResult parse(List<File> reportFiles, hudson.model.TaskListener listener) throws InterruptedException, IOException
TestResult.parse in class DefaultTestResultParserImplreportFiles - List of files to be parsed. Never be empty nor null.launcher - 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.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.hudson.AbortException - If you encounter an error that you handled gracefully, throw this exception and Hudson
will not show a stack trace.public CucumberTestResult parse(String testResultLocations, hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.TaskListener listener) throws InterruptedException, IOException
parse in class DefaultTestResultParserImplInterruptedExceptionIOExceptionCopyright © 2013-2014. All Rights Reserved.