Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't run BackstopJS tests on Docker #1289

Open
Antonytm opened this issue Mar 14, 2021 · 2 comments
Open

I can't run BackstopJS tests on Docker #1289

Antonytm opened this issue Mar 14, 2021 · 2 comments

Comments

@Antonytm
Copy link

Steps to reproduce, I run next commands(tried Windows Command Prompt and Windows Powershell):

  1. npm i backstopjs -g
  2. backstopjs init
  3. backstopjs test
  4. backstopjs approve
  5. backstop test --docker

Expected result:
The test should be executed in the same way as on step 3
Actual result:

BackstopJS v5.1.0
Loading config:  C:\Source\backstopJSRunner\backstop.json

COMMAND | Executing core for "test"
Delegating command to Docker... docker run --rm -it --mount type=bind,source="C:\Source\backstopJSRunner",target=/src backstopjs/backstopjs:5.1.0 test "--moby"
docker: Error response from daemon: invalid mount config for type "bind": invalid mount path: '/src'.
See 'docker run --help'.
COMMAND | Executing core for "openReport"
openReport | Attempting to ping
   COMMAND | Command "test" ended with an error after [1.847s]
   COMMAND | Error: docker run --rm -it --mount type=bind,source="C:\Source\backstopJSRunner",target=/src backstopjs/backstopjs:5.1.0 test "--moby" returned 125
                 at ChildProcess.<anonymous> (C:\Users\Anton\AppData\Roaming\nvm\v12.18.3\node_modules\backstopjs\core\util\runDocker.js:68:18)
                 at ChildProcess.emit (events.js:315:20)
                 at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
openReport | Remote not detected. Opening backstop_data\html_report\index.html

C:\Source\backstopJSRunner>docker run --rm -it --mount type=bind,source="C:\Source\backstopJSRunner",target=/src backstopjs/backstopjs:5.1.0 test "--moby"
docker: Error response from daemon: invalid mount config for type "bind": invalid mount path: '/src'.
See 'docker run --help'.

image

@garris
Copy link
Owner

garris commented Mar 29, 2021

I believe this was fixed in 5.3.0...
#1291 (comment)

@Antonytm
Copy link
Author

@garris

I have tried 5.3.0, but the result is the same.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants