Cucumber Options
As mentioned in earlier chapter, @CucumberOptions are like property file or settings. If we are using IDE like eclipse to execute our project then @CucumberOptions is very helpful and important.
Runner Class
----
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
public class RunnerClass {
@RunWith(Cucumber.class)
@CucumberOptions (features = "src/featureFiles/")
public class RunFeatures {
}
}
----
In the above example we have only used option 'features' but what are the other options available in cucumber?
No comments:
Post a Comment