org.jenkinsci.plugins.cucumber.jsontestsupport
Class CucumberTestResultArchiver

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.matrix.MatrixAggregatable, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class CucumberTestResultArchiver
extends hudson.tasks.Recorder
implements hudson.matrix.MatrixAggregatable

Generates HTML report from Cucumber JSON files.

Author:
James Nord, Kohsuke Kawaguchi (original JUnit code)

Nested Class Summary
static class CucumberTestResultArchiver.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
hudson.tasks.Publisher.DescriptorExtensionListImpl
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
CucumberTestResultArchiver(String testResults)
           
CucumberTestResultArchiver(String testResults, boolean ignoreBadSteps)
           
 
Method Summary
 hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 CucumberTestResultArchiver.DescriptorImpl getDescriptor()
           
 boolean getIgnoreBadSteps()
           
 Collection<hudson.model.Action> getProjectActions(hudson.model.AbstractProject<?,?> project)
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
          This class does explicit checkpointing.
 String getTestResults()
           
 boolean perform(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 void setIgnoreBadSteps(boolean ignoreBadSteps)
           
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CucumberTestResultArchiver

@DataBoundConstructor
public CucumberTestResultArchiver(String testResults)

CucumberTestResultArchiver

public CucumberTestResultArchiver(String testResults,
                                  boolean ignoreBadSteps)
Method Detail

setIgnoreBadSteps

@DataBoundSetter
public void setIgnoreBadSteps(boolean ignoreBadSteps)

getIgnoreBadSteps

public boolean getIgnoreBadSteps()

perform

public boolean perform(hudson.model.AbstractBuild build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws InterruptedException,
                       IOException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
InterruptedException
IOException

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
This class does explicit checkpointing.

Specified by:
getRequiredMonitorService in interface hudson.tasks.BuildStep

getTestResults

public String getTestResults()

getProjectActions

public Collection<hudson.model.Action> getProjectActions(hudson.model.AbstractProject<?,?> project)
Specified by:
getProjectActions in interface hudson.tasks.BuildStep
Overrides:
getProjectActions in class hudson.tasks.BuildStepCompatibilityLayer

createAggregator

public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build,
                                                       hudson.Launcher launcher,
                                                       hudson.model.BuildListener listener)
Specified by:
createAggregator in interface hudson.matrix.MatrixAggregatable

getDescriptor

public CucumberTestResultArchiver.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>
Overrides:
getDescriptor in class hudson.tasks.Recorder


Copyright © 2013-2014. All Rights Reserved.