Learning Cucumber and BDD concepts with Cypress and the cypress-cucumber-preprocessor plugin.
This repo is a learning ground for a few things:
- Behavior Driven Development Concepts
- Cucumber - a framework for writing and running BDD-style tests with Feature Files and Step Definitions
- Gherkin - a syntax for writing BDD features (Feature, Background, Example/Scenario, Given/When/Then, etc.)
- Using Cypress plugins
- Designing a test suite
This repo uses the recommended way of file organization by storing step definitions in a folder with the same name as the feature file. We will use separate feature files, however they can also be bundled for improved performance.
Each of these named folders will be used to demonstrate different applications for Cucumber in test code. New test cases will be added over time. Feel free to open an issue to request a test case example or contribute an example of your own!
Tests the navigation link of the website.
- Reusable Step Definitions (documentation)
Shout-out to the following free tutorials I leveraged:
I'd also recommend checking out:
npm install
npx cypress open