⬡ Hub
Skip to content

cypress-framework

Cypress Framework

This framework utilizes Cypress for modern front-end test automation. Cypress is a fast, easy, and reliable testing tool for anything that runs in a browser.

Key Features:

  • Developer-Friendly: Built for developers and QA engineers.
  • Fast and Reliable: Tests run directly in the browser.
  • Automatic Waiting: Eliminates the need for explicit waits.
  • Time Travel: Debug tests with snapshots of your application.

Project Structure

  • cypress/e2e: Contains the Cypress test files (.cy.js).
  • package.json: Defines project metadata and dependencies.

How to Run Tests

Open Cypress Test Runner

To open the Cypress Test Runner and run tests interactively, navigate to the cypress-framework directory and execute:

npm run cypress:open

Run Tests Headlessly

To run tests headlessly (in the terminal without opening a browser), execute:

npm run cypress:run

Jenkins Integration

This framework includes a Jenkinsfile for continuous integration. It defines stages for installing dependencies and running Cypress tests.

Docker Integration

This framework also includes a a Jenkinsfile_docker and Dockerfile to build and run tests within a Docker container, ensuring a consistent test environment.

Files and Subdirectories