cypress-cucumber-boilerplate icon indicating copy to clipboard operation
cypress-cucumber-boilerplate copied to clipboard

Cypress.IO Project using Javascript and Cucumber to start automating E2E tests just cloning it and installing dependencies.

cypress-cucumber-boilerplate-for-e2e-testing

exemplo imagem

Cypress 10+ with Cucumber boilerplate project.

💻 Topics

Integrated with:

  • [x] https://github.com/badeball/cypress-cucumber-preprocessor
  • [x] https://github.com/bahmutov/cypress-esbuild-preprocessor
  • [x] https://www.npmjs.com/package/multiple-cucumber-html-reporter
  • [x] https://github.com/cucumber/json-formatter
  • [x] https://github.com/Shelex/cypress-allure-plugin

(+ bundlers: https://github.com/badeball/cypress-cucumber-preprocessor/tree/master/examples)

  • 💻 Pre-requisites

  1. Node JS
  2. Optional: Java 8 for Allure Reporter
  3. Optional: Json-formatter for Native Reporter option(depends on your OS: https://github.com/cucumber/json-formatter)

🚀 Install the project

Install project dependencies with: npm i

Run the demo:

  1. Standard Execution: npm run cypress:execution
  2. Native report(with JSON FORMATTER): Check how to do it in this video: Cucumber BDD Report - YouTube
  3. Allure Report:
    1. npm run cypress:execution-allure
    2. npm run allure:report
    3. allure open
    4. You'll get a report like this one: GitHub Page - Allure Report Sample: https://joanesquivel.github.io/cypress-cucumber-boilerplate/

Sample repo to generate an allure report as an artifact using GH Actions

  • https://github.com/SeyiOG/newCyLearn2/blob/main/.github/workflows/cypress-allure-report.yml