tacoss / grunt-nightwatch

Run your Nightwatch.js tests with Grunt
50 stars 22 forks source link

Feature Request: Running nightwatch tests on parallel #21

Closed ghost closed 10 years ago

ghost commented 10 years ago

Using nightwatch command line tests can be executed against multiple environment nightwatch -e chrome,firefox,ie as explained below: http://nightwatchjs.org/guide#run-parallel

This would be great addition to this module.

pateketrueke commented 10 years ago

Actually the Nightwatch's parallel feature use some forking to achieve that, but grunt-nightwatch can't fork that in the same way due some settings issues.

The results aren't equal but seems to work fine on 0.3.0, even such is not real parallelism (?).

Let me know if this is useful for you.

ghost commented 10 years ago

Hi Alvaro - Thanks for new version. This is useful if all tests are passing.

I have following configuration set to run in 2 environments in saucelabs:

  grunt.registerTask('e2e-saucelabs',[
    'sauceConnect:e2e',
    'nightwatch:chrome:firefox',
    'sauce-connect-close'
  ])

If test fails for chrome; it's failing entirely; can we fail gracefully and continue. `nightwatch -e chrome,ie`` doesn't care if other environment passed or fail.