Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/prashanth-sams/cypress-cucumber-boilerplate

Boilerplate project for Cypress tool in Cucumber flavor
https://github.com/prashanth-sams/cypress-cucumber-boilerplate

cucumber cypress cypress-cucumber cypress-cucumber-typescript cypress-tests docker typescript

Last synced: 3 months ago
JSON representation

Boilerplate project for Cypress tool in Cucumber flavor

Awesome Lists containing this project

README

        

# Cypress | Cucumber Boilerplate
[![pull request lint](https://github.com/prashanth-sams/cypress-cucumber-boilerplate/actions/workflows/linter.yml/badge.svg)](https://github.com/prashanth-sams/cypress-cucumber-boilerplate/actions/workflows/linter.yml)

## Features

- [x] Page Object Pattern
- [x] Dockerize tests
- [x] Parallel testing using dockers
- [x] XHR
- [x] Hooks and Tags
- [x] Retries and Screenshots on failure
- [x] Dashboard supported slack notifier
- [x] TS Linter on git commit
- [x] Mocha HTML Report
- [x] Mocha XML Report
- [x] 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 '' --no-verify` |