Can You Customise Cucumber Generated Methods?

已回答

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)?

评论操作 固定链接

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 .

0
评论操作 固定链接

Thank you for reply and also for this solution i will try this prepaidcardstatus

0

请先登录再写评论。