cucumber.runtime
Class Runtime
java.lang.Object
cucumber.runtime.Runtime
- All Implemented Interfaces:
- UnreportedStepExecutor
public class Runtime
- extends Object
- implements UnreportedStepExecutor
This is the main entry point for running Cucumber features.
Method Summary |
void |
addError(Throwable error)
|
void |
buildBackendWorlds(gherkin.formatter.Reporter reporter)
|
void |
disposeBackendWorlds()
|
byte |
exitStatus()
|
List<Throwable> |
getErrors()
|
Glue |
getGlue()
|
List<String> |
getSnippets()
|
void |
run()
This is the main entry point. |
void |
runAfterHooks(gherkin.formatter.Reporter reporter,
Set<gherkin.formatter.model.Tag> tags)
|
void |
runBeforeHooks(gherkin.formatter.Reporter reporter,
Set<gherkin.formatter.model.Tag> tags)
|
void |
runStep(String uri,
gherkin.formatter.model.Step step,
gherkin.formatter.Reporter reporter,
gherkin.I18n i18n)
|
void |
runUnreportedStep(String uri,
gherkin.I18n i18n,
String stepKeyword,
String stepName,
int line,
List<gherkin.formatter.model.DataTableRow> dataTableRows,
gherkin.formatter.model.DocString docString)
|
void |
writeStepdefsJson()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Runtime
public Runtime(ResourceLoader resourceLoader,
ClassLoader classLoader,
RuntimeOptions runtimeOptions)
Runtime
public Runtime(ResourceLoader resourceLoader,
ClassLoader classLoader,
Collection<? extends Backend> backends,
RuntimeOptions runtimeOptions)
addError
public void addError(Throwable error)
run
public void run()
- This is the main entry point. Used from CLI, but not from JUnit.
buildBackendWorlds
public void buildBackendWorlds(gherkin.formatter.Reporter reporter)
disposeBackendWorlds
public void disposeBackendWorlds()
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<gherkin.formatter.model.Tag> tags)
runAfterHooks
public void runAfterHooks(gherkin.formatter.Reporter reporter,
Set<gherkin.formatter.model.Tag> tags)
runUnreportedStep
public void runUnreportedStep(String uri,
gherkin.I18n i18n,
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,
gherkin.I18n i18n)
writeStepdefsJson
public void writeStepdefsJson()
throws IOException
- Throws:
IOException
Copyright © 2012. All Rights Reserved.