Skip to content

mishalalex/cypress-e2e-framework

Repository files navigation

Cypress E2E Framework

A robust and modern end-to-end test automation framework built with Cypress, offering comprehensive support for both UI and REST API testing. This framework is designed for simplicity, scalability, and easy integration into your CI/CD pipelines.

Features

  • UI & API Testing: A unified framework to test both the user interface and backend REST APIs of your application.
  • JavaScript-Based: Built on JavaScript for a familiar and flexible testing environment.
  • Mochawesome Reports: Generate beautiful, easy-to-read HTML reports for every test run.
  • CI/CD Integration: Ready for continuous integration with pre-configured GitHub Actions workflows.
  • Modular Structure: A clean, organized folder structure makes it easy to manage and scale your tests.

Getting Started

Follow these steps to get the framework up and running on your local machine.

Prerequisites

You need to have Node.js and npm installed.

Installation

  1. Clone the repository:

    git clone [https://github.com/mishalalex/cypress-e2e-framework.git](https://github.com/mishalalex/cypress-e2e-framework.git)
  2. Navigate into the project directory:

    cd cypress-e2e-framework
  3. Install the dependencies:

    npm install

🛠️ Running the Tests

From the Command Line

To run all tests in headless mode:

npx cypress run

Using npm Scripts

The package.json file includes a set of pre-defined scripts to make running tests even easier.

Run all tests:

npm test

Open the Cypress Test Runner:

npm run cypress:open

Project Structure

The project is organized to be intuitive and easy to navigate:

image

Reports

Test reports are generated by Mochawesome and can be found in the cypress/reports folder after a test run. Simply open the index.html file in your browser to view the detailed results.

Crafted by Mishal

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •