- Write cucumber runner first.
- Write scenario in .feature file.
- Generate the empty steps.
- Glue each step to an actual implementation.
Because step snippet is different between tools, choose one style and stick to it.
IntelliJ create step definition code:
@Given("^delete \"([^\"]*)\" has been performed$")
public void deleteHasBeenPerformed(String arg0) throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}Cucumber step snippet:
@Given("^delete \"([^\"]*)\" has been performed$")
public void delete_has_been_performed(String arg1) throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}