nemopear / cypress-cucumber-boilerplate

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cypress-cucumber-boilerplate-for-e2e-testing

exemplo imagem

Cypress 10+ with Cucumber boilerplate project.

πŸ’» Topics

Integrated with:

(+ 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

About

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


Languages

Language:JavaScript 73.5%Language:Gherkin 26.5%