i-pu / ipu-room

⚠ [Pausing] Developping Social-Room-Service for studying
3 stars 1 forks source link

Cypress in Docker #20

Closed wakame-tech closed 5 years ago

wakame-tech commented 5 years ago

Overview

An error occured in a Dcoker container when run yarn test:e2e.

Todo

https://docs.cypress.io/examples/examples/docker.html#Images

Logs

/app # yarn test:e2e
...
It looks like this is your first time using Cypress: 3.2.0

 ✖  Verifying Cypress can run /root/.cache/Cypress/3.2.0/Cypress
   → Cypress Version: 3.2.0
Your system is missing the dependency: XVFB

Install XVFB and run Cypress again.

Read our documentation on dependencies for more information:

https://on.cypress.io/required-dependencies

If you are using Docker, we provide containers with all required dependencies installed.
----------

Caught error trying to run XVFB: "Your system is missing the dependency: XVFB

Install XVFB and run Cypress again.

Read our documentation on dependencies for more information:

https://on.cypress.io/required-dependencies

If you are using Docker, we provide containers with all required dependencies installed.
----------

Error: spawn Xvfb ENOENT
----------

Platform: linux (Raspbian - )
Cypress Version: 3.2.0"
----------

Platform: linux (Raspbian - )
Cypress Version: 3.2.0
 ERROR  Error: Command failed: /app/node_modules/cypress/bin/cypress open --config baseUrl=http://localhost:8081/
Error: Command failed: /app/node_modules/cypress/bin/cypress open --config baseUrl=http://localhost:8081/
    at makeError (/app/node_modules/execa/index.js:174:9)
    at Promise.all.then.arr (/app/node_modules/execa/index.js:278:16)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
/app # npx cypress run
It looks like this is your first time using Cypress: 3.2.0

 ✖  Verifying Cypress can run /root/.cache/Cypress/3.2.0/Cypress
   → Cypress Version: 3.2.0
Your system is missing the dependency: XVFB

Install XVFB and run Cypress again.

Read our documentation on dependencies for more information:

https://on.cypress.io/required-dependencies

If you are using Docker, we provide containers with all required dependencies installed.
----------

Caught error trying to run XVFB: "Your system is missing the dependency: XVFB

Install XVFB and run Cypress again.

Read our documentation on dependencies for more information:

https://on.cypress.io/required-dependencies

If you are using Docker, we provide containers with all required dependencies installed.
----------

Error: spawn Xvfb ENOENT
----------

Platform: linux (Raspbian - )
Cypress Version: 3.2.0"
----------

Platform: linux (Raspbian - )
Cypress Version: 3.2.0
hamadakafu commented 5 years ago

何回かやったらなんか動いたから閉じてもok

wakame-tech commented 5 years ago

thx