|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.junit.runner.Runner
org.junit.runners.ParentRunner<FeatureRunner>
cucumber.junit.Cucumber
public class Cucumber
Classes annotated with @RunWith(Cucumber.class) will run a Cucumber Feature.
The class should be empty without any fields or methods.
.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| Nested Class Summary | |
|---|---|
static interface |
Cucumber.Options
This annotation can be used to give additional hints to the Cucumber runner
about what to run. |
| Constructor Summary | |
|---|---|
Cucumber(Class clazz)
Constructor called by JUnit. |
|
| Method Summary | |
|---|---|
protected org.junit.runner.Description |
describeChild(FeatureRunner child)
|
protected List<FeatureRunner> |
getChildren()
|
void |
run(org.junit.runner.notification.RunNotifier notifier)
|
protected void |
runChild(FeatureRunner child,
org.junit.runner.notification.RunNotifier notifier)
|
| Methods inherited from class org.junit.runners.ParentRunner |
|---|
childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses |
| Methods inherited from class org.junit.runner.Runner |
|---|
testCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cucumber(Class clazz)
throws org.junit.runners.model.InitializationError,
IOException
clazz - the class with the @RunWith annotation.
IOException - if there is a problem
org.junit.runners.model.InitializationError - if there is another problem| Method Detail |
|---|
protected List<FeatureRunner> getChildren()
getChildren in class org.junit.runners.ParentRunner<FeatureRunner>protected org.junit.runner.Description describeChild(FeatureRunner child)
describeChild in class org.junit.runners.ParentRunner<FeatureRunner>
protected void runChild(FeatureRunner child,
org.junit.runner.notification.RunNotifier notifier)
runChild in class org.junit.runners.ParentRunner<FeatureRunner>public void run(org.junit.runner.notification.RunNotifier notifier)
run in class org.junit.runners.ParentRunner<FeatureRunner>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||