public class Cucumber
extends org.junit.runners.ParentRunner<cucumber.runtime.junit.FeatureRunner>
@RunWith(Cucumber.class) will run a Cucumber Feature.
The class should be empty without any fields or methods.
Cucumber will look for a .feature file on the classpath, using the same resource
path as the annotated class (.class substituted by .feature).
Additional hints can be given to Cucumber by annotating the class with Cucumber.Options.Cucumber.Options| Modifier and Type | Class and Description |
|---|---|
static interface |
Cucumber.Options
This annotation can be used to give additional hints to the
Cucumber runner
about what to run. |
| Constructor and Description |
|---|
Cucumber(Class clazz)
Constructor called by JUnit.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.junit.runner.Description |
describeChild(cucumber.runtime.junit.FeatureRunner child) |
List<cucumber.runtime.junit.FeatureRunner> |
getChildren() |
void |
run(org.junit.runner.notification.RunNotifier notifier) |
protected void |
runChild(cucumber.runtime.junit.FeatureRunner child,
org.junit.runner.notification.RunNotifier notifier) |
public Cucumber(Class clazz) throws org.junit.runners.model.InitializationError, IOException
clazz - the class with the @RunWith annotation.IOException - if there is a problemorg.junit.runners.model.InitializationError - if there is another problempublic List<cucumber.runtime.junit.FeatureRunner> getChildren()
getChildren in class org.junit.runners.ParentRunner<cucumber.runtime.junit.FeatureRunner>protected org.junit.runner.Description describeChild(cucumber.runtime.junit.FeatureRunner child)
describeChild in class org.junit.runners.ParentRunner<cucumber.runtime.junit.FeatureRunner>protected void runChild(cucumber.runtime.junit.FeatureRunner child,
org.junit.runner.notification.RunNotifier notifier)
runChild in class org.junit.runners.ParentRunner<cucumber.runtime.junit.FeatureRunner>public void run(org.junit.runner.notification.RunNotifier notifier)
run in class org.junit.runners.ParentRunner<cucumber.runtime.junit.FeatureRunner>Copyright © 2013. All Rights Reserved.