Skip to content

Commit c3adbe6

Browse files
author
John Doherty
committed
Added troubleshooting notes regarding IntelliJ Cucumber Plugin
1 parent bae12a5 commit c3adbe6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.MD

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,34 @@ node ./node_modules/selenium-cucumber-js/index.js
252252

253253
Please raise bugs via [Github’s Issue Tracker](https://github.com/john-doherty/selenium-cucumber-js/issues) and provide enough information to allow the bug to be reproduced.
254254

255+
## Troubleshooting
256+
257+
### IntelliJ Cucumber Plugin
258+
259+
IntelliJ based IDE's have a plugin that allows the tester to control click on a `Given`, `When`, `Then` statement within a Cucumber feature file and have the user taken to associated step definition. This plugin relies on your project having the following folder structure:
260+
261+
```
262+
.
263+
└── features
264+
│ google-search.feature
265+
└── step_definitions
266+
│ └── google-search-steps.js
267+
└── page_objects
268+
│ └── google-search.js
269+
└── shared_objects
270+
│ ├── test-data.js
271+
│ └── stuff.json
272+
└── reports
273+
├── cucumber-report.json
274+
└── cucumber-report.html
275+
```
276+
277+
This can be achieved by restructuring your project to match the layout above _(notice the underscores)_, and running your tests with the following switches:
278+
279+
```bash
280+
node ./node_modules/selenium-cucumber-js/index.js -s ./features/step_definitions -p ./features/page_objects -o ./features/shared_objects -r ./features/reports
281+
```
282+
255283
## License
256284

257285
[ISC License](LICENSE) © 2016 [John Doherty](https://courseof.life/johndoherty)

0 commit comments

Comments
 (0)