Cucumber for Java

Compatible with:  IntelliJ IDEA , Android Studio
78 160
This plugin enables Cucumber support with step definitions written in Java. The following coding assistance features are available:
  • Error and syntax highlighting.
  • Indentation.
  • Intention actions.
  • Viewing code structure.
  • Navigation in the source code.
  • Integrated documentation.
  • Code completion.
  • Search for usages.
  • Commenting and uncommenting lines.

Download plugin

This is very good, but could you add one enhancement? When auto-generating a step_definition, it currently remembers all the step_definition files you have created. But this list of files is not ordered. Could these please be ordered alphabetically?
I get a "indent with 2 spaces" suggestion which never does anything... Also if this option could be added to the popup menu of content assist (alt-enter) it would be very helpful!
moustakas42 , Could you clarify the second problem? It would be nice if yo file issue to our tracker (with code sample)
Good job, but please improve refactoring and add a suggestion to correct identation (the current one isn't always there and doesn't work when it is).
Worked cucumber-java8 only scenario written En lang. Add Support please Ru lang
cucumber.cli.Main is located in cucumber-core jar. You should attach this jar file to your project. Also there is no need to fill run configuration manually. You could run .feature file from context menu, in this case IDE will fill all necessary run configuration properties
It does not work for me in IntelliJ IDEA 2016.1.1; I've followed carefully I have enabled plugin, set module dependency to cucumber-java8.1.2.4.jar and and set scope to "Test"; I've created a ".feature" file, then the step definitions and everything seemed to work fine till I have tried to create a run/debug configuration in order to be able to run the test. I've found that there is a "Cucumber java" configuration in the "Defaults" group, but it is completely empty. According to the main class should be, by default, "cucumber.cli.Main" and "this class is taken from the jar archive attached when enabling Cucumber support in project." I cannot figure where to find this class, because is not present in the cucumber-java8.jar. And it's obvious that with an invalid run configuration I am not able to run the tests.
It's known issue: we are working on it
The new version of this plug-in requires Java 8.
"Scenario outline parameter" and "Step parameter" does not have syntax highlighting (even if is set in Settings-Colors & Fonts-Cucumber) in the following (currently the latest) IntelliJ IDEA version: IntelliJ IDEA 2016.1 Build #IC-145.258, built on March 17, 2016 JRE: 1.8.0_65-b17 amd64 JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
I am trying to write a script to install this automatically. I can download this plugin, but cannot find the cucumber plugin to download and install. Where do you find that from? I see you linked to a version of it in a previous comment, but I would like to find the latest version when possible.
Need Plugin Descriptor to install on Intellij
Hi Andrey, Thanks for the great plugin. I'm a user of the derived Scala plugin and I'm having an issue with the "Go to implementation" dropdown being too wide: Could you maybe help us out and give us a hint what we need to return in order to make it narrower? Thanks for your help, Leonard
I created issue for lambda 8 step defs, feel free to vote for it.
What about support of java 8 lambda style of step definitions? Currently plugin does not find such step defs in Intellij Idea 14.1.2 (141.178 version of plugin)
Please  sign in  to leave a comment.