blueimp / nightwatch

This project is deprecated in favor of blueimp/wdio.
https://github.com/blueimp/wdio
134 stars 43 forks source link

Pass command-line-options to nightwatch #6

Closed ximo1984 closed 7 years ago

ximo1984 commented 7 years ago

Hi, I think that it would be useful if we could pass command line options to the nigthwatch instance. http://nightwatchjs.org/guide#command-line-options.

Thanks in advance.

subhojit777 commented 7 years ago

You can already do it. Like this docker-compose run --rm nightwatch --env prod

ximo1984 commented 7 years ago

In fact, I want to generate JUnit XML reports but when I try this it doesn't works:

docker-compose run --rm nightwatch --output reports

Thanks for your help.

ximo1984 commented 7 years ago

I changed nightwatch.json configuration and change: "output_folder": "reports"

And it works!!