cypress-io / cypress-example-docker-compose

Example running Cypress tests against Apache server via docker-compose

Home Page:https://on.cypress.io/docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Would it be possible to only mount the tests without building the image?

030 opened this issue · comments

I was assuming that I could just mount the tests instead of building the cypress image over and over again. Would that be possible?

Step 6/9 : RUN npm ci
 ---> Running in 0760a07f6887

> cypress@3.1.4 postinstall /app/node_modules/cypress
> node index.js --exec install

Installing Cypress (version: 3.1.4)

?[?25l[07:54:00]  Downloading Cypress     [started]
[07:54:11]  Downloading Cypress     [completed]
[07:54:11]  Unzipping Cypress       [started]
[07:55:39]  Unzipping Cypress       [completed]
[07:55:39]  Finishing Installation  [started]
[07:55:39]  Finishing Installation  [completed]
?[?25h
You can now open Cypress by running: node_modules/.bin/cypress open

Yes, once you build the Docker images, every npm run up just uses the volumes, and does not re-install Cypress

    volumes:
      - ./e2e/cypress:/app/cypress
      - ./e2e/cypress.json:/app/cypress.json