An E2E test automation framework in JavaScript developed using Cypress
Tests :
The following tests run against a publicly available web app : https://cafetownsend-angular-rails.herokuapp.com/login
- Login
- Create Employee
- Edit Employee
- Delete Employee
- Node v10+
- Google Chrome browser v70+
- NPM v6+
-
One-liner clone and install :
git clone https://github.com/abhidp/cypress-circleci.git && cd cypress-circleci
-
Run Test Locally :
npm test
-
View Reports for Local Run :
After a run completion, Mochawesome generates report under
cypress/results/report/mochawesome.html
-
CI/CD :
CI is setup using CircleCI Orbs
Config for the CI is defined in
circle.yml
. It uses Cypress's predefined Orb which makes installing cypress, caching dependencies, parallel execution etc. with minimum effort and maximum efficiency.4 CI machines are set to run tests in Parallel and save around 13 seconds of execution time compared to running all test serially in a single container.
View the Builds for this repo @ https://circleci.com/gh/abhidp/workflows/cypress-circleci ( You need to be logged in to your own CircleCI account using your GitHub credentials to view this )
View the Summary under
Test Summary
tab and Mochawesome Report underArtifacts
tab of the Job run -
Cypress Dashboard
Cypress Dashboard is integrated with GitHub and CircleCI to record and report every test when new code is pushed.
View the Dashboard @ https://dashboard.cypress.io/#/projects/kcuq6p/runs
( You need to be logged in to your own Cypress Dashboard account using your GitHub or Google credentials to view this )
Please contact me in case of any queries