browserstack / nightwatch-browserstack

Selenium examples for Nightwatch and BrowserStack Automate
https://www.browserstack.com
77 stars 62 forks source link

Can I run local tests in parallel, or am I confused? #7

Closed dwoodwardgb closed 8 years ago

dwoodwardgb commented 8 years ago

In the example for browserstack local there is a global beforeEach() and afterEach() that setup and teardown the browserstack local server for each test. Why is this necessary for each test? Why can't there just be one server instance for all the tests? The reason I ask is because I'm trying to run parallel tests locally and one runs fine but the other complains with this error: LocalError: Either another browserstack local client is running on your machine or some server is listening on port 45691.

tr4n2uil commented 8 years ago

Thanks for that! Updated sample in PR #8

vedharish commented 8 years ago

@dwoodwardgb You can now run npm run parallel_local to run local tests in parallel. Please have a look at the runner script

dwoodwardgb commented 8 years ago

Thanks!

StephanBijzitter commented 6 years ago

@vedharish using the local parallel config, if I specify one browser, everything is fine. But when I started adding more browsers, child processes are spawned and then nothing really happens. The command exits after a few seconds (no error) and browserstack hasn't received any data. Adding --verbose also doesn't really do anything.

irobayna commented 6 years ago

Same here, parallel with multiple browsers does not work