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

Node 7 - running parallel tests #1425

Closed DianaIonita closed 7 years ago

DianaIonita commented 7 years ago

I'm running nightwatch on tests using the funky new async/await syntax, among others, from the latest node: node --harmony node_modules\nightwatch\bin\nightwatch -c nightwatch.conf.js This works just fine.

The problem arises when I try to run things in parallel: node --harmony node_modules\nightwatch\bin\nightwatch -c nightwatch.conf.js -e test-env1,test-env2

I think the spawned child processes have no notion of the "--harmony" flag and therefore no way to understand the new javascript syntax. I was wondering whether this is known and whether support is on the roadmap.

Thanks!

beatfactor commented 7 years ago

Yeah, the child process gets only a few args passed to it when started. We might change that in a future version, but for now it's not a priority.