cucumber.runtime
Class Runtime

java.lang.Object
  extended by cucumber.runtime.Runtime
All Implemented Interfaces:
UnreportedStepExecutor

public class Runtime
extends Object
implements UnreportedStepExecutor

This is the main entry point for running Cucumber features.


Constructor Summary
Runtime(ResourceLoader resourceLoader, List<String> gluePaths, ClassLoader classLoader)
           
Runtime(ResourceLoader resourceLoader, List<String> gluePaths, ClassLoader classLoader, boolean isDryRun)
           
Runtime(ResourceLoader resourceLoader, List<String> gluePaths, ClassLoader classLoader, Collection<? extends Backend> backends, boolean isDryRun)
           
 
Method Summary
 void addError(Throwable error)
           
 void buildBackendWorlds()
           
 void disposeBackendWorlds()
           
 byte exitStatus()
           
 List<Throwable> getErrors()
           
 Glue getGlue()
           
 List<String> getSnippets()
           
 boolean isDryRun()
           
 void run(CucumberFeature cucumberFeature, gherkin.formatter.Formatter formatter, gherkin.formatter.Reporter reporter)
          Runs an individual feature, not all the features
 void run(List<String> featurePaths, List<Object> filters, gherkin.formatter.Formatter formatter, gherkin.formatter.Reporter reporter)
          This is the main entry point.
 void runAfterHooks(gherkin.formatter.Reporter reporter, Set<String> tags)
           
 void runBeforeHooks(gherkin.formatter.Reporter reporter, Set<String> tags)
           
 void runStep(String uri, gherkin.formatter.model.Step step, gherkin.formatter.Reporter reporter, Locale locale)
           
 void runUnreportedStep(String uri, Locale locale, String stepKeyword, String stepName, int line, List<gherkin.formatter.model.DataTableRow> dataTableRows, gherkin.formatter.model.DocString docString)
           
 void writeStepdefsJson(List<String> featurePaths, File dotCucumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Runtime

public Runtime(ResourceLoader resourceLoader,
               List<String> gluePaths,
               ClassLoader classLoader)

Runtime

public Runtime(ResourceLoader resourceLoader,
               List<String> gluePaths,
               ClassLoader classLoader,
               boolean isDryRun)

Runtime

public Runtime(ResourceLoader resourceLoader,
               List<String> gluePaths,
               ClassLoader classLoader,
               Collection<? extends Backend> backends,
               boolean isDryRun)
Method Detail

addError

public void addError(Throwable error)

run

public void run(List<String> featurePaths,
                List<Object> filters,
                gherkin.formatter.Formatter formatter,
                gherkin.formatter.Reporter reporter)
This is the main entry point.

Parameters:
featurePaths -
filters -
formatter -
reporter -

run

public void run(CucumberFeature cucumberFeature,
                gherkin.formatter.Formatter formatter,
                gherkin.formatter.Reporter reporter)
Runs an individual feature, not all the features

Parameters:
cucumberFeature -
formatter -
reporter -

buildBackendWorlds

public void buildBackendWorlds()

disposeBackendWorlds

public void disposeBackendWorlds()

isDryRun

public boolean isDryRun()

getErrors

public List<Throwable> getErrors()

exitStatus

public byte exitStatus()

getSnippets

public List<String> getSnippets()

getGlue

public Glue getGlue()

runBeforeHooks

public void runBeforeHooks(gherkin.formatter.Reporter reporter,
                           Set<String> tags)

runAfterHooks

public void runAfterHooks(gherkin.formatter.Reporter reporter,
                          Set<String> tags)

runUnreportedStep

public void runUnreportedStep(String uri,
                              Locale locale,
                              String stepKeyword,
                              String stepName,
                              int line,
                              List<gherkin.formatter.model.DataTableRow> dataTableRows,
                              gherkin.formatter.model.DocString docString)
                       throws Throwable
Specified by:
runUnreportedStep in interface UnreportedStepExecutor
Throws:
Throwable

runStep

public void runStep(String uri,
                    gherkin.formatter.model.Step step,
                    gherkin.formatter.Reporter reporter,
                    Locale locale)

writeStepdefsJson

public void writeStepdefsJson(List<String> featurePaths,
                              File dotCucumber)
                       throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.