cucumber.runtime
Class Runtime

java.lang.Object
  extended by cucumber.runtime.Runtime

public class Runtime
extends java.lang.Object

This is the main entry point for running Cucumber features.


Constructor Summary
Runtime(java.util.List<java.lang.String> gluePaths, ResourceLoader resourceLoader)
           
Runtime(java.util.List<java.lang.String> gluePaths, ResourceLoader resourceLoader, boolean isDryRun)
           
Runtime(java.util.List<java.lang.String> gluePaths, ResourceLoader resourceLoader, java.util.Collection<? extends Backend> backends, boolean isDryRun)
           
 
Method Summary
 void addError(java.lang.Throwable error)
           
 void addUndefinedStep(gherkin.formatter.model.Step step, java.util.Locale locale)
           
 void buildBackendWorlds(World world)
           
 void disposeBackendWorlds()
           
 byte exitStatus()
           
 java.util.List<java.lang.Throwable> getErrors()
           
 java.util.List<java.lang.String> getSnippets()
           
 boolean isDryRun()
           
 void run(CucumberFeature cucumberFeature, gherkin.formatter.Formatter formatter, gherkin.formatter.Reporter reporter)
           
 void run(java.util.List<java.lang.String> featurePaths, java.util.List<java.lang.Object> filters, gherkin.formatter.Formatter formatter, gherkin.formatter.Reporter reporter)
           
 void storeStepKeyword(gherkin.formatter.model.Step step, java.util.Locale locale)
           
 void writeStepdefsJson(java.util.List<java.lang.String> featurePaths, java.io.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(java.util.List<java.lang.String> gluePaths,
               ResourceLoader resourceLoader)

Runtime

public Runtime(java.util.List<java.lang.String> gluePaths,
               ResourceLoader resourceLoader,
               boolean isDryRun)

Runtime

public Runtime(java.util.List<java.lang.String> gluePaths,
               ResourceLoader resourceLoader,
               java.util.Collection<? extends Backend> backends,
               boolean isDryRun)
Method Detail

addError

public void addError(java.lang.Throwable error)

run

public void run(java.util.List<java.lang.String> featurePaths,
                java.util.List<java.lang.Object> filters,
                gherkin.formatter.Formatter formatter,
                gherkin.formatter.Reporter reporter)

run

public void run(CucumberFeature cucumberFeature,
                gherkin.formatter.Formatter formatter,
                gherkin.formatter.Reporter reporter)

buildBackendWorlds

public void buildBackendWorlds(World world)

disposeBackendWorlds

public void disposeBackendWorlds()

writeStepdefsJson

public void writeStepdefsJson(java.util.List<java.lang.String> featurePaths,
                              java.io.File dotCucumber)
                       throws java.io.IOException
Throws:
java.io.IOException

isDryRun

public boolean isDryRun()

getErrors

public java.util.List<java.lang.Throwable> getErrors()

exitStatus

public byte exitStatus()

storeStepKeyword

public void storeStepKeyword(gherkin.formatter.model.Step step,
                             java.util.Locale locale)

addUndefinedStep

public void addUndefinedStep(gherkin.formatter.model.Step step,
                             java.util.Locale locale)

getSnippets

public java.util.List<java.lang.String> getSnippets()