Can You Customise Cucumber Generated Methods?
Answered
If I create a Cucumber feature file with missing steps and run a test I get the following output:
You can implement missing steps with the snippets below:
@Then("IDEA should generate in the same format as Cucumber")
public void idea_should_generate_in_the_same_format_as_Cucumber() {
// Write code here that turns the phrase above into concrete actions
throw new cucumber.api.PendingException();
}
However, if I do a quick fix in IDEA it generates this:
@Then("IDEA should generate in the same format as Cucumber")
public void ideaShouldGenerateInTheSameFormatAsCucumber() {
}
Is it possible to make IDEA generate the same as Cucumber (even if the rest of my project is using CamelCase)?
Please sign in to leave a comment.
Hello,
It seems there is no built-in way to do that but you can try using String Manipulation plugin. Please see https://stackoverflow.com/a/17351108/12844632.
See also https://www.jetbrains.com/help/idea/managing-plugins.html .
Thank you for reply and also for this solution i will try this prepaidcardstatus