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
* chore: first step in the code reorganization
* feat: new way of importing step functions, updated readme and code reorganization
* chore: tweaked readme and updated package-lock
* Apply suggestions from code review
Co-Authored-By: lgandecki <[email protected]>
# Run cucumber/gherkin-syntaxed specs with cypress.io
4
4
5
-
Please take a look at an example here:
5
+
Follow the Setup steps, or if you prefer to hack on a working example, take a look at [https://github.com/TheBrainFamily/cypress-cucumber-example](https://github.com/TheBrainFamily/cypress-cucumber-example
Step definition files are by default in: cypress/support/step_definitions. If you want to put them somewhere please use [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) format. For example, add to your package.json :
Step definition files are by default in: cypress/support/step_definitions. If you want to put them somewhere please use [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) format. For example, add to your package.json :
Run your cypress the way you would normally do :) click on a .feature file on the list of specs, and see the magic happening!
169
+
Thanks to @Oltodo we can now use Custom Parameter Type Resolves.
170
+
Here is an [example](cypress/support/step_definitions/customParameterTypes.js) with related [.feature file](cypress/integration/CustomParameterTypes.feature)
160
171
161
172
## Cucumber Expressions
162
173
@@ -165,30 +176,25 @@ We use https://docs.cucumber.io/cucumber/cucumber-expressions/ to parse your .fe
165
176
## Development
166
177
167
178
Install all dependencies:
168
-
```javascript
179
+
```bash
169
180
npm install
170
181
```
171
182
172
183
Link the package:
173
-
```javascript
184
+
```bash
174
185
npm link
175
186
npm link cypress-cucumber-preprocessor
176
187
```
177
188
178
189
Run tests:
179
-
```javascript
190
+
```bash
180
191
npm test
181
192
```
182
193
183
194
## Disclaimer
184
195
185
196
Please let me know if you find any issues or have suggestions for improvements.
186
197
187
-
## Custom Parameter Type Resolves
188
-
189
-
Thanks to @Oltodo we can know use Custom Parameter Type Resolves.
190
-
Here is an [example](cypress/support/step_definitions/customParameterTypes.js) with related [.feature file](cypress/integration/CustomParameterTypes.feature)
191
-
192
198
## WebStorm Support
193
199
194
200
If you want WebStorm to resolve your steps, use the capitalized Given/When/Then function names (instead of the initial given/when/then).
@@ -241,7 +247,7 @@ Then in your .ts files you need to make sure you either require/import the funct
0 commit comments