Skip to content
This repository has been archived by the owner on Oct 24, 2021. It is now read-only.

Parallel tests #6

Open
derchrisuk opened this issue Feb 9, 2015 · 0 comments
Open

Parallel tests #6

derchrisuk opened this issue Feb 9, 2015 · 0 comments

Comments

@derchrisuk
Copy link

With the current setup, it is not possible to run parallel tests.
They are started using the following CLI options:
--env env1,env1

If I try to pass this to the grunt plugin, I get the following error:

$ grunt nightwatchjs:chrome,firefox
Grunt and task output will also be logged to "./grunt-log.txt"

Running "nightwatchjs:chrome,firefox" (nightwatchjs) task
Running nightwatchjs with args:[ '--env=chrome,firefox' ]
Starting selenium server in parallel mode... started - PID:  84351

Started child process for env:  chrome_1  

Started child process for env:  firefox_2  

 chrome_1       ERROR There was an error while starting the test runner:


 chrome_1       
 chrome_1       TypeError: Object chrome,firefox,chrome has no method 'split'
    at Object.CliRunner.parseTestSettings (/Users/derchris/PhpstormProjects/webSPELL-4.2.3/node_modules/nightwatch/lib/runner/cli/clirunner.js:344:30)
    at Object.CliRunner.init (/Users/derchris/PhpstormProjects/webSPELL-4.2.3/node_modules/nightwatch/lib/runner/cli/clirunner.js:31:8)
    at Object.module.exports.runner (/Users/derchris/PhpstormProjects/webSPELL-4.2.3/node_modules/nightwatch/lib/index.js:459:19)
    at /Users/derchris/PhpstormProjects/webSPELL-4.2.3/node_modules/nightwatch/bin/runner.js:9:16
    at Object.module.exports.cli (/Users/derchris/PhpstormProjects/webSPELL-4.2.3/node_modules/nightwatch/lib/index.js:451:7)
    at Object.<anonymous> (/Users/derchris/PhpstormProjects/webSPELL-4.2.3/node_modules/nightwatch/bin/runner.js:8:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

 firefox_2      ERROR There was an error while starting the test runner:


 firefox_2      TypeError: Object chrome,firefox,firefox has no method 'split'
    at Object.CliRunner.parseTestSettings (/Users/derchris/PhpstormProjects/webSPELL-4.2.3/node_modules/nightwatch/lib/runner/cli/clirunner.js:344:30)
    at Object.CliRunner.init (/Users/derchris/PhpstormProjects/webSPELL-4.2.3/node_modules/nightwatch/lib/runner/cli/clirunner.js:31:8)
    at Object.module.exports.runner (/Users/derchris/PhpstormProjects/webSPELL-4.2.3/node_modules/nightwatch/lib/index.js:459:19)
    at /Users/derchris/PhpstormProjects/webSPELL-4.2.3/node_modules/nightwatch/bin/runner.js:9:16
    at Object.module.exports.cli (/Users/derchris/PhpstormProjects/webSPELL-4.2.3/node_modules/nightwatch/lib/index.js:451:7)
    at Object.<anonymous> (/Users/derchris/PhpstormProjects/webSPELL-4.2.3/node_modules/nightwatch/bin/runner.js:8:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

Warning: Task "nightwatchjs:chrome,firefox" failed. Use --force to continue.

Tried fixing it by removing the '=' from args, and replaced it by a blank, but this was throwing another error.

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

No branches or pull requests

1 participant