Skip to content

Dockerimage for cypress including custom testing libraries.

Notifications You must be signed in to change notification settings

histify/cypress-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cypress docker image

This image has the cypress/included image as a base.

It installs additional testing libraries:

  • @4tw/cypress-drag-drop
  • @testing-library/cypress
  • cypress-file-upload
  • cypress-network-idle
  • axios
  • luxon

You also have an env variable named CYPRESS_CI set to 1.

entrypoint

The entrypoint is set to cypress run -q. The -q is useful to have less clutter on the CI in the output.

Cypress Dashboard

Example docker-compose.yml for using Cypress Dashboard for storing recordings.

services:
  cypress:
    image: 4teamwork/cypress
    environment:
      - CYPRESS_baseUrl=http://external-frontend:80
      - NO_COLOR=1
      - TERM=dumb
      - CYPRESS_RECORD_KEY=XXXX
      - CYPRESS_PROJECT_ID=XXXX
      - CYPRESS_VIDEO=true
      - COMMIT_INFO_MESSAGE
      - COMMIT_INFO_REMOTE
      - COMMIT_INFO_BRANCH
      - COMMIT_INFO_SHA
      - COMMIT_INFO_AUTHOR
      - COMMIT_INFO_EMAIL
    volumes:
      - ./:/app/test

When CYPRESS_RECORD_KEY is not empty, cypress will be started with the --record option.

About

Dockerimage for cypress including custom testing libraries.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 77.2%
  • Shell 22.8%