Cucumber Presentation
Cucumber Presentation
Cucumber Presentation
Your scenarios should describe the intended behaviour of the system, not the
implementation. In other words, it should describe what, not how. Like :
We should write :
Instead of :
4. Before writing first feature, check if a folder with name “node_modules” has been
created in project root directory.
5. Create first feature file with Gherkin syntax and ‘.feature’ as an extension.
The feature file should be in ‘features’ folder inside project root directory.
9. Execute again (Repeat step 6). This time , all the tests should be pending because
we’ve not added any actions inside step definitions.
10. Add the actual application behaviour code inside the step_definitions.
11. Cucumber.js gives you the possibility of adding JavaScript support files that can be
loaded before your tests run. By default, Cucumber.js is looking and loading these
JavaScript files that are located inside a folder with name support and this folder
should exist under the features directory.