Skip to content

prashanth-sams/cypress-cucumber-boilerplate

Repository files navigation

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