Efficient Setup for Pull Requests
with
Cypress Cloud and Sorry-Cypress
Advantages and Strengths of Cypress in E2E Testing
E2E
Integration
Unit
E2E
Integration
Unit
E2E
Integration
Unit
$$$
$
Free and open source
Test modern apps directly in the browser
Write your first passing test in minutes
npm install --save-dev cypress
npx cypress open # generates cypress project
Debug failures directly in the browser:
Time Travel
Screenshots and Videos
Live Reload
Leveraging Regular Cypress E2E Test Execution with GitHub
For every commit on:
prod/main/dev branches
Pull Request
- ?
Locally:
pre-commit - probably not
pre-push - well... probably nothing more than smoke tests
Leveraging Regular Cypress E2E Test Execution with GitHub
name: End-to-end tests
on: push
jobs:
cypress-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
# build your dedicated instance here
- name: Cypress run
uses: cypress-io/github-action@v5
name: Artifacts
on: push
jobs:
cypress-run:
runs-on: ubuntu-22.04
name: Artifacts
steps:
- uses: actions/checkout@v3
- uses: cypress-io/github-action@v5
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
- uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-videos
path: cypress/videos
Cypress Cloud vs. Alternative Solutions
cypress.io/cloud
currents.dev
git clone git@github.com:sorry-cypress/sorry-cypress.git
cd sorry-cypress
docker-compose -f docker-compose.full.yml up
// currents.config.js
module.exports = {
projectId: "kj29s",
cloudServiceUrl: "http://localhost:1234", # ADD THIS
};
Our design team has a collective 75 years of experience in crafting digital products. Our diverse backgrounds offer a thorough mix of points of view.
Conceptualization
Product Design
Development
UI/UX Testing
Branding