Run cypress tests with ability to update test result whenever regression or retesting occurs
177
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
docker exec -d cypress-react yarn run test
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
The test report will be available at http://localhost:3000 or http://YOUR-IP:3000
Screenshots taken during test run are available at http://localhost:81 or http://YOUR-IP:81
docker-compose exec -d cypress yarn run test
For a full example, refer to the GitHub repo.
Content type
Image
Digest
Size
1.1 GB
Last updated
almost 5 years ago
docker pull amadosaladino/cypress-react:v1