Sign inSign up

amadosaladino/cypress-react

By amadosaladino

•Updated almost 5 years ago

Run cypress tests with ability to update test result whenever regression or retesting occurs

Image
0

177

amadosaladino/cypress-react repository overview

⁠Standalone container

docker run -d --name cypress-react -p 3000:3000 -v $PWD:/e2e -v /e2e/node_modules amadosaladino/cypress-react:v1

Note It is assumed this command will run from the cypress root project

⁠Regression test

docker exec -d cypress-react yarn run test

⁠docker-compose

It could be used along side with ghcr.io/linuxserver/photoshow photo gallery image

version: '3'
services:
  cypress:
    image: cypress-react:v1
    ports: 
      - "3000:3000"
    volumes:
      - /e2e/node_modules
      - .:/e2e
  gallery:
    image: ghcr.io/linuxserver/photoshow
    depends_on:
    - cypress
    ports:
      - "81:80"
    volumes:
      - ./cypress/screenshots:/Pictures:ro

⁠Test report

The test report will be available at http://localhost:3000 or http://YOUR-IP:3000

⁠Test screenshots

Screenshots taken during test run are available at http://localhost:81 or http://YOUR-IP:81

⁠Regression test

docker-compose exec -d cypress yarn run test

For a full example, refer to the GitHub repo.⁠

Tag summary

Content type

Image

Digest

Size

1.1 GB

Last updated

almost 5 years ago

docker pull amadosaladino/cypress-react:v1