This repository contains a Cypress testing project for automated end-to-end testing of the Heroku App. It demonstrates how to write and run Cypress tests for web applications.
- Getting Started
- Running Tests Locally
- Running Tests in Headless Mode
- Configuration
- GitHub Actions Integration
- Dependencies
Make sure you have Node.js and npm installed on your local development machine.
-
Clone this repository to your local machine:
git clone https://github.com/your-username/heroku-cypress-testing.git
To run Cypress tests locally, use the following command:
npx cypress run --e2e
To run Cypress tests in headless mode (non-interactive) for continuous integration (CI) or automation purposes, use the following command:
npx cypress run --e2e --headless
Cypress configuration options can be found in the cypress.json file. Adjust the base URL and other settings as needed.
This project includes a GitHub Actions workflow to automate the execution of Cypress tests. The workflow is defined in the .github/workflows/main.yml file.
When you push changes to your repository, GitHub Actions will automatically run the Cypress tests as specified in the workflow file.
The report is generated by cypress-mochawesome-reporter and is uploaded to github pages though github actions pipeline.
URL: https://mb1lal.github.io/CypressAutomation/
- Cypress: Cypress
- cypress-downloadfile: cypress-downloadfile
- cypress-file-upload: cypress-file-upload
- cypress-mochawesome-reporter: cypress-mochawesome-reporter
- cypress-real-events: cypress-real-events