Cucumber for Java
for IntelliJ IDEA

Compatible with:  IntelliJ IDEA Android Studio
93 091
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

Hey, great plugin. We have problems when auto generating steps from scenario outline examples if a variable is not a string "". To be more specific if we don't use quotation marks around then the auto generation does not work properly. We work with Android Studio. Maybe the bug is already solved with a newer version. We only get version 145.597 via the plugin manager. Could you look into this please? Thanks!
I have a problem with navigation from .feature file to step definition through Cmd+click on step after update IntelliJ to 2016.3(IntelliJ IDEA 2016.3 Build #IC-163.7743.44, built on November 17, 2016 JRE: 1.8.0_112-release-408-b2 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o) and Cucumber-for-Java (163.5644).
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
Please  sign in  to leave a comment.