You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 21, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: content/docs/community/faq.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -77,11 +77,11 @@ For information on how to run the Cucumber CLI, see [From the command line](/doc
77
77
For information about configuration options, see [Configuration](/docs/cucumber/configuration/).
78
78
79
79
{{% block "java,kotlin" %}}
80
-
When using JUnit 5, reference the [cucumber-junit-platform-engine documentation](https://github.com/cucumber/cucumber-jvm/tree/main/junit-platform-engine).
80
+
When using JUnit 5, reference the [cucumber-junit-platform-engine documentation](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-junit-platform-engine).
81
81
82
82
When running Cucumber with JUnit 4, you can specify several options on how JUnit 4 should run your tests.
83
83
Check the section on [JUnit](https://docs.cucumber.io/cucumber/api/#junit) for more information. For more
84
-
details about the available CucumberOptions, check the [code](https://github.com/cucumber/cucumber-jvm/blob/main/core/src/test/java/io/cucumber/core/options/CucumberOptions.java).
84
+
details about the available CucumberOptions, check the [code](https://github.com/cucumber/cucumber-jvm/blob/main/cucumber-junit/src/main/java/io/cucumber/junit/CucumberOptions.java).
85
85
86
86
87
87
{{% /block %}}
@@ -142,11 +142,11 @@ You can find the required dependencies [here](https://docs.cucumber.io/installat
142
142
{{% /block %}}
143
143
144
144
{{% block "java" %}}
145
-
For an example on how to use them, see this [code example](https://github.com/cucumber/cucumber-jvm/blob/main/examples/java8-calculator/src/test/java/io/cucumber/examples/java8/RpnCalculatorSteps.java).
145
+
For an example on how to use them, see this [code example](https://github.com/cucumber/cucumber-jvm/blob/main/examples/calculator-java8-cli/src/test/java/io/cucumber/examples/calculator/RpnCalculatorSteps.java).
146
146
{{% /block %}}
147
147
148
148
{{% block "kotlin" %}}
149
-
For an example on how to use them, see this [code example](https://github.com/cucumber/cucumber-jvm/blob/main/kotlin-java8/src/test/kotlin/io/cucumber/kotlin/LambdaStepDefinitions.kt).
149
+
For an example on how to use them, see this [code example](https://github.com/cucumber/cucumber-jvm/blob/main/cucumber-kotlin-java8/src/test/kotlin/io/cucumber/kotlin/LambdaStepDefinitions.kt).
150
150
{{% /block %}}
151
151
152
152
## How do I call other steps or scenarios?
@@ -254,7 +254,7 @@ multiple steps might match the same expression. Finally, this means that you can
254
254
definitions, as that will lead to duplicates.
255
255
256
256
# Does Cucumber-JVM support Kotlin?
257
-
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).
257
+
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/cucumber-kotlin-java8).
258
258
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).
259
259
260
260
# Cucumber can't find my step definitions in IntelliJ IDEA
Copy file name to clipboardExpand all lines: content/docs/community/not-cucumber.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ For more information see the [Karate project on GitHub](https://github.com/intui
113
113
{{% text "java,kotlin" %}}
114
114
If you are having issues when using TestNG with Cucumber-JVM, please check that you are using the version of TestNG that Cucumber-JVM was build against.
115
115
116
-
For an example of how to use TestNG with Cucumber, see the [java-calculator-testng example](https://github.com/cucumber/cucumber-jvm/tree/main/examples/java-calculator-testng).
116
+
For an example of how to use TestNG with Cucumber, see the [java-calculator-testng example](https://github.com/cucumber/cucumber-jvm/tree/main/examples/calculator-java-testng).
117
117
{{% /text %}}
118
118
119
119
{{% text "ruby,javascript" %}}TestNG is only available for Java and Kotlin.{{% /text %}}
@@ -812,7 +812,7 @@ Tags that are placed above a `Scenario Outline` will be inherited by `Examples`.
812
812
You can tell Cucumber to only run scenarios with a particular tag:
813
813
814
814
{{% block "java,kotlin,scala" %}}
815
-
For JUnit 5 see the [cucumber-junit-platform-engine documetation](https://github.com/cucumber/cucumber-jvm/tree/main/junit-platform-engine#tags).
815
+
For JUnit 5 see the [cucumber-junit-platform-engine documetation](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-junit-platform-engine#tags).
816
816
817
817
For JUnit 4 and TestNG using a JVM system property:
818
818
@@ -1113,7 +1113,7 @@ You can also run features using a [build tool](/docs/tools/general#build-tools)
1113
1113
## JUnit 5
1114
1114
1115
1115
{{% block "java,kotlin,scala" %}}
1116
-
See the [cucumber-junit-platform-engine documentation](https://github.com/cucumber/cucumber-jvm/tree/main/junit-platform-engine#configuration-options)
1116
+
See the [cucumber-junit-platform-engine documentation](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-junit-platform-engine#configuration-options)
1117
1117
{{% /block %}}
1118
1118
1119
1119
{{% block "ruby" %}}
@@ -1141,7 +1141,7 @@ To use JUnit to execute cucumber scenarios add the `cucumber-junit` dependency t
1141
1141
[...]
1142
1142
</dependencies>
1143
1143
```
1144
-
Note that `cucumber-junit` is based on JUnit 4. If you're using JUnit 5, use the [cucumber-junit-platform-engine](https://github.com/cucumber/cucumber-jvm/tree/main/junit-platform-engine).
1144
+
Note that `cucumber-junit` is based on JUnit 4. If you're using JUnit 5, use the [cucumber-junit-platform-engine](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-junit-platform-engine).
1145
1145
Or include `junit-vintage-engine` dependency, as well. For more information, please refer to [JUnit 5 documentation](https://junit.org/junit5/docs/current/user-guide/#migrating-from-junit4-running).
1146
1146
1147
1147
Create an empty class that uses the Cucumber JUnit runner.
@@ -1555,7 +1555,7 @@ properties file and CLI arguments take precedence over all.
1555
1555
1556
1556
Note that the `cucumber-junit-platform-engine` is provided with properties
Copy file name to clipboardExpand all lines: content/docs/cucumber/state.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ Or, if you are using Gradle, add:
147
147
compile group: 'io.cucumber', name: 'cucumber-picocontainer', version: '{{% version "cucumberjvm" %}}'
148
148
```
149
149
150
-
There is no documentation yet, but the code is on [GitHub](https://github.com/cucumber/cucumber-jvm/tree/main/picocontainer).
150
+
There is no documentation yet, but the code is on [GitHub](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-picocontainer).
151
151
For more information, please see [sharing state using PicoContainer](http://www.thinkcode.se/blog/2017/04/01/sharing-state-between-steps-in-cucumberjvm-using-picocontainer).
152
152
{{% /block %}}
153
153
@@ -172,7 +172,7 @@ Or, if you are using Gradle, add:
172
172
compile group: 'io.cucumber', name: 'cucumber-spring', version: '{{% version "cucumberjvm" %}}'
173
173
```
174
174
175
-
There is no documentation yet, but the code is on [GitHub](https://github.com/cucumber/cucumber-jvm/tree/main/spring).
175
+
There is no documentation yet, but the code is on [GitHub](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-spring).
176
176
{{% /block %}}
177
177
178
178
{{% block "ruby,javascript" %}} Spring is a Dependency Injection framework for JVM languages. {{% /block %}}
@@ -195,7 +195,7 @@ Or, if you are using Gradle, add:
195
195
compile group: 'io.cucumber', name: 'cucumber-guice', version: '{{% version "cucumberjvm" %}}'
196
196
```
197
197
198
-
There is no documentation yet, but the code is on [GitHub](https://github.com/cucumber/cucumber-jvm/tree/main/guice).
198
+
There is no documentation yet, but the code is on [GitHub](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-guice).
199
199
For more information, please see [sharing state using Guice](http://www.thinkcode.se/blog/2017/08/16/sharing-state-between-steps-in-cucumberjvm-using-guice).
200
200
{{% /block %}}
201
201
@@ -219,7 +219,7 @@ Or, if you are using Gradle, add:
219
219
compile group: 'io.cucumber', name: 'cucumber-openejb', version: '{{% version "cucumberjvm" %}}'
220
220
```
221
221
222
-
There is no documentation yet, but the code is on [GitHub](https://github.com/cucumber/cucumber-jvm/tree/main/openejb).
222
+
There is no documentation yet, but the code is on [GitHub](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-openejb).
223
223
{{% /block %}}
224
224
225
225
{{% block "ruby,javascript" %}} OpenEJB is a Dependency Injection framework for JVM languages. {{% /block %}}
@@ -242,7 +242,7 @@ Or, if you are using Gradle, add:
242
242
compile group: 'io.cucumber', name: 'cucumber-weld', version: '{{% version "cucumberjvm" %}}'
243
243
```
244
244
245
-
There is no documentation yet, but the code is on [GitHub](https://github.com/cucumber/cucumber-jvm/tree/main/weld).
245
+
There is no documentation yet, but the code is on [GitHub](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-weld).
246
246
{{% /block %}}
247
247
248
248
{{% block "ruby,javascript" %}} Weld is a Dependency Injection framework for JVM languages. {{% /block %}}
@@ -265,7 +265,7 @@ Or, if you are using Gradle, add:
265
265
compile group: 'io.cucumber', name: 'cucumber-needle', version: '{{% version "cucumberjvm" %}}'
266
266
```
267
267
268
-
There is no documentation yet, but the code is on [GitHub](https://github.com/cucumber/cucumber-jvm/tree/main/needle).
268
+
There is no documentation yet, but the code is on [GitHub](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-needle).
269
269
{{% /block %}}
270
270
271
271
{{% block "ruby,javascript" %}} Needle is a Dependency Injection framework for JVM languages. {{% /block %}}
### Using the Cucumber object factory with a test runner (JUnit 5/JUnit 4/TestNG)
442
442
{{% block "java,kotlin" %}}
443
443
The Cucumber modules for [JUnit 4](/docs/cucumber/api/#junit) and [TestNG](/docs/cucumber/checking-assertions/#testng) allow to run Cucumber through a JUnit/TestNG test.
444
-
The custom object factory can be configured using the `@CucumberOptions` annotation. For JUnit 5 see the [cucumber-junit-platform-engine](https://github.com/cucumber/cucumber-jvm/tree/main/junit-platform-engine) documentation.
444
+
The custom object factory can be configured using the `@CucumberOptions` annotation. For JUnit 5 see the [cucumber-junit-platform-engine](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-junit-platform-engine) documentation.
445
445
{{% /block %}}
446
446
447
447
{{% block "ruby,javascript" %}} Using the Cucumber object factory is specific to JVM languages. {{% /block %}}
@@ -489,7 +489,7 @@ Feature: Let's write a lot of stuff to the DB
489
489
490
490
### With JUnit 5 and Spring
491
491
{{% block "java,kotlin" %}}
492
-
See the [`spring-txn`](https://github.com/cucumber/cucumber-jvm/tree/main/examples/spring-java-junit5) example in Cucumber-JVM for a minimal setup.
492
+
See the [`spring-java-junit5`](https://github.com/cucumber/cucumber-jvm/tree/main/examples/spring-java-junit5) example in Cucumber-JVM for a minimal setup.
493
493
{{% /block %}}
494
494
495
495
{{% block "ruby,javascript" %}} JUnit 5 and Spring are used with JVM languages. {{% /block %}}
Copy file name to clipboardExpand all lines: content/docs/guides/parallel-execution.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ For each of these options, this tutorial will look at the project setup, configu
23
23
24
24
Cucumber Scenarios can be executed in parallel using the **JUnit Platform**.
25
25
26
-
See the [cucumber-junit-platform-engine documentation](https://github.com/cucumber/cucumber-jvm/tree/main/junit-platform-engine) for details.
26
+
See the [cucumber-junit-platform-engine documentation](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-junit-platform-engine) for details.
27
27
{{% /block %}}
28
28
29
29
# JUnit 4
@@ -302,7 +302,7 @@ If you have **multiple runners**, set the parallel configuration to `classes` to
302
302
# CLI
303
303
304
304
{{% block "java,kotlin" %}}
305
-
The `Main class` in the `io.cucumber.core.cli package` is used to execute the feature files. You can run this class directly from the command line; in that case, there is no need to create any runner class. The usage options for this class are mentioned [here](https://github.com/cucumber/cucumber-jvm/blob/v4.0.0/core/src/main/resources/cucumber/api/cli/USAGE.txt). The `--threads` option needs to be set to a value **greater than 1** to run in parallel. When the parallel mode is used, the scenarios and rows in a scenario outline will be run in multiple threads.
305
+
The `Main` class in the `io.cucumber.core.cli` package is used to execute the feature files. You can run this class directly from the command line; in that case, there is no need to create any runner class. The usage options for this class are mentioned [here](https://github.com/cucumber/cucumber-jvm/blob/main/cucumber-core/src/main/resources/io/cucumber/core/options/USAGE.txt). The `--threads` option needs to be set to a value **greater than 1** to run in parallel. When the parallel mode is used, the scenarios and rows in a scenario outline will be run in multiple threads.
306
306
307
307
Follow the steps below to **execute the command from a terminal**.
Copy file name to clipboardExpand all lines: content/docs/installation/java.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ You can now run Cucumber [from the command line](/docs/cucumber/api/#from-the-co
106
106
107
107
# JUnit 5 integration
108
108
109
-
It is also possible to use [cucumber-junit-platform-engine](https://github.com/cucumber/cucumber-jvm/tree/main/junit-platform-engine) to run your Cucumber test suite.
109
+
It is also possible to use [cucumber-junit-platform-engine](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-junit-platform-engine) to run your Cucumber test suite.
It is also possible to use [cucumber-junit-platform-engine](https://github.com/cucumber/cucumber-jvm/tree/main/junit-platform-engine) to run your Cucumber test suite.
36
+
It is also possible to use [cucumber-junit-platform-engine](https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-junit-platform-engine) to run your Cucumber test suite.
0 commit comments