nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.79k stars 1.31k forks source link

[Enhancement] Add sample to docker #3035

Open apis3445 opened 2 years ago

apis3445 commented 2 years ago

Is your feature request related to a problem? Please describe. Could you add a sample to run test in docker

Describe the solution you'd like Add a docker file and/or dockercompose to run tests in docker

Describe how the solution will work Add the files and documentation to run in docker. I tried with this repo https://github.com/apis3445/nightwatch but when I try run npx nightwatch demo.js I got this error:

SessionNotCreatedError: An error occurred while creating a new GeckoDriver session: [SessionNotCreatedError] Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line

 Verify if GeckoDriver is configured correctly; using:
  {
     start_process: true,
     server_path: '/home/nightwatch/node_modules/geckodriver/geckodriver',
     port: 4444,
     host: 'localhost',
     ssl: false,
     default_path_prefix: '',
     proxy: undefined,
     cli_args: {}
  }

Describe alternatives you've considered Maybe I can try with some docker image with dockercompose but it's the same it's lack of sample or some official docker image

Additional context

beatfactor commented 2 years ago

I have used these docker images a while ago and both were working fine. You may need to update the versions though:

We'll look into adding a docs section on our website about Docker.

AlishRani commented 3 weeks ago

Please assign me this issue.