Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreasneuber/cypress-cucumber-example
Sample implementation with Cypress and Cucumber BDD. With Dockerfile.
https://github.com/andreasneuber/cypress-cucumber-example
cucumber cypress
Last synced: about 2 months ago
JSON representation
Sample implementation with Cypress and Cucumber BDD. With Dockerfile.
- Host: GitHub
- URL: https://github.com/andreasneuber/cypress-cucumber-example
- Owner: andreasneuber
- License: mit
- Created: 2023-02-13T08:30:20.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-30T15:46:46.000Z (5 months ago)
- Last Synced: 2024-07-30T19:53:44.577Z (5 months ago)
- Topics: cucumber, cypress
- Language: HTML
- Homepage:
- Size: 1.15 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cypress-cucumber-framework
## Application under test
The feature files, step definitions and page objects were written for https://github.com/andreasneuber/automatic-test-sample-site.
Readme in this repo has further details how to set it up.## Run tests locally
```
npm install
npm run test:all
```## Run tests in CI
- In package.json, change line 8 to `"test": "cypress run --browser chrome --headless --spec \"**/*.feature\""`## Reports
Steps to create a Multiple Cucumber HTML report:
- Run tests with `npm test:all`
- json files in dir `cypress/cucumber-json` will be updated
- Then run `node cucumber-html-report.js`
- Open file `reports/cucumber-htmlreport.html/index.html` in browser## Run with Docker
Build the container: `docker build --no-cache -t cypress-cucumber-docker .`Then run it: `docker run --rm --net="host" -it cypress-cucumber-docker:latest npm run test:all`
--net=host is needed because the application under test is running on http://localhost:8000