prashanth-sams / cypress-cucumber-boilerplate

Boilerplate project for Cypress tool in Cucumber flavor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cypress | Cucumber Boilerplate

pull request lint

Features

  • Page Object Pattern
  • Dockerize tests
  • Parallel testing using dockers
  • XHR
  • Hooks and Tags
  • Retries and Screenshots on failure
  • Dashboard supported slack notifier
  • TS Linter on git commit
  • Mocha HTML Report
  • Mocha XML Report
  • Allure Report

Installation

sudo npm install -g yarn

yarn

Test Runner

Action Command
Yarn test runner yarn tests
Node test runner npm run tests
Docker test runner docker run -it -v $PWD:/e2e -w /e2e cypress/included:9.1.1
Scale Docker containers for parallel testing docker-compose up --scale e2e=3
Shell runner bash build.sh

Cypress Launcher

npm run open

OPTIONAL

Action Command
husky initializer npx husky-init
linter on stagged git files yarn lint-staged
skip mandatory linter git commit -am '<message>' --no-verify

About

Boilerplate project for Cypress tool in Cucumber flavor


Languages

Language:TypeScript 77.0%Language:Gherkin 11.1%Language:JavaScript 10.2%Language:Shell 1.7%