@Extension public class CucumberJSONParser extends DefaultTestResultParserImpl
TestResult so that Jenkins will display the results.IGNORE_TIMESTAMP_CHECK| Constructor and Description |
|---|
CucumberJSONParser() |
CucumberJSONParser(boolean ignoreBadSteps) |
| 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 CucumberJSONParser()
public CucumberJSONParser(boolean ignoreBadSteps)
public String getDisplayName()
getDisplayName in class hudson.tasks.test.TestResultParserprotected CucumberTestResult parse(List<File> reportFiles, hudson.model.TaskListener listener) throws InterruptedException, IOException
DefaultTestResultParserImplTestResult.parse in class DefaultTestResultParserImplreportFiles - List of files to be parsed. Never be empty nor 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
Jenkins 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-2015. All Rights Reserved.