June 2015
Intermediate to advanced
162 pages
2h 59m
English
Sometimes, depending on the requirements, we would like to override default Cucumber behavior, such as reporting or the project structure, and so on. We can configure Cucumber via the Terminal, but mostly we run Cucumber with JUnit. So how do we configure Cucumber with JUnit Runners, let's see this in our next section.
@CucumberOptions to the RunCuckeTest.java class and import Cucumber.api.CucumberOptions. This is how the updated code for RunCukeTest.java should look like:package com.CucumberOptions; import org.junit.runner.RunWith; import Cucumber.api.CucumberOptions; import Cucumber.api.junit.Cucumber; @RunWith(Cucumber.class) @CucumberOptions( //your Cucumber Options code goes here ) public class ...
Read now
Unlock full access