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
Copy file name to clipboardExpand all lines: README.md
+12-15Lines changed: 12 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ You can follow the documentation below, or if you prefer to hack on a working ex
31
31
*[Output](#output)
32
32
*[IDE support](#ide-support)
33
33
*[Webstorm](#webstorm)
34
+
*[Intellij IDEA](#intellij-IDEA)
35
+
*[Visual Studio Code](#visual-Studio-Code)
34
36
*[TypeScript Support](#typeScript-support)
35
37
*[How to contribute](#how-to-contribute)
36
38
*[Roadmap](#roadmap)
@@ -361,26 +363,21 @@ generate | `false` | Flag to output cucumber.json or not
361
363
## IDE support
362
364
363
365
### WebStorm
364
-
If you want WebStorm to resolve your steps, use the capitalized `Given/When/Then` function names (instead of the initial given/when/then).
365
-
Unfortunately, at this point WebStorm only understands regexp syntax or a backtick syntax but without Cucumber Expressions :-(
366
+
If you want WebStorm to resolve your steps, use the capitalized `Given/When/Then` function names (instead of the initial given/when/then).
366
367
367
-
In other words, these work:
368
+
Note, only WebStorm 2019.2 and later versions are able to [resolve steps located outside of a step_definitions folder](https://youtrack.jetbrains.com/issue/WEB-11505)
368
369
369
-
```javascript
370
-
Given(/^user navigated to the Start page?/, () => { });
371
-
```
370
+
### Intellij IDEA
371
+
Intellij IDEA Community Edition does not support cucumber in javascript, but the Ultimate Edition can provide the same level support for step resolution as WebStorm.
372
372
373
-
```javascript
374
-
Given(`user navigated to the start page`, () => { });
375
-
Then(/(.*?) is chosen/, choice=> {})
376
-
```
373
+
To enable cucumber step resolution in Intellij IDEA Ulimate edition you will need to download and enable the JetBrains [Cucumber JS plugin](https://plugins.jetbrains.com/plugin/7418-cucumber-js/). In WebStorm this plugin is already bundled into the distribution.
377
374
378
-
But this doesn't:
379
-
```javascript
380
-
Then(`{word} is chosen`, choice=> {})
381
-
```
375
+
### Visual Studio Code
376
+
To get vscode to resolve your steps, install the [Cucumber (Gherkin) Full Support](https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete) extension from the marketplace.
377
+
378
+
You will also need to tell the extension the locations of your feature and step definition files [as described here](https://github.com/alexkrechik/VSCucumberAutoComplete#settings-example).
382
379
383
-
*See [#56](https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/issues/56) for more details*
380
+
Note, that unlike WebStorm which will correctly identify multiple implementations of matching steps, the vscode extension currently resolves to the first matching occurence it finds on its path.
0 commit comments