Search code examples
cucumbercucumber-java

How to make Cucumber generate steps with regex?


For java, within eclipse, cucumber used to generate steps that looked like this:

@Then("the database attribute \"([^\"]*)\" is updated")

But now it generates steps like this:

@Then("the database attribute {string} is updated")

How can I go back to the old way of generation with regex?


Solution

  • Cucumber version 1.2.5 done that. now the latest version 6xx and 7xx. Now we don't get the old way of styling. because cucumber plugin in eclipse and intellij migrated to latest one. please use latest version.