Skip to content

Commit 288c075

Browse files
committed
cucumber#284 - Added 'Cucumber Can't Find my Step Definitions in IntelliJ IDEA'
1 parent 6c89c72 commit 288c075

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/docs/community/faq.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,3 +253,13 @@ definitions, as that will lead to duplicates.
253253
# Does Cucumber-JVM support Kotlin?
254254
You can use [Cucumber-JVM](https://github.com/cucumber/cucumber-jvm) to write step definitions in Kotlin. Please have a look at the [Kotlin examples for cucumber-jvm](https://github.com/cucumber/cucumber-jvm/tree/master/kotlin-java8).
255255
At the moment it is not possible to generate step definitions in Kotlin. The reason for this is that there is no Kotlin Backend implemented. If this is something you'd like to work on, there is [a request for one](https://github.com/cucumber/cucumber-jvm/issues/1520). There is also a request for a [native Kotlin implementation of Cucumber](https://github.com/cucumber/cucumber/issues/331).
256+
257+
# Cucumber Can't Find my Step Definitions in IntelliJ IDEA
258+
In this instance, you need to configure a new run configuration in IntelliJ IDEA.
259+
1. Click **Run** > **Edit Configurations** from the menu in IntellJ IDEA.
260+
2. Click the **+** icon on the top-left and type in _cucumber_. Select **Cucumber Java**.
261+
3. Create the configuration according to the [Run/Debug Configuration Cucumber Java](https://www.jetbrains.com/help/idea/run-debug-configuration-cucumber-java.html) instructions from JetBrains.
262+
263+
If IntelliJ IDEA doesn't recognize the package with step definitions, you can specify it manually by entering the package name in the Glue field, for example _stepdefs_.
264+
265+
For more information, please see [Run Cucumber Tests](https://www.jetbrains.com/help/idea/running-cucumber-tests.html) from JetBrains documentation.

0 commit comments

Comments
 (0)