browserstack / browserstack-local-nodejs

NodeJS bindings for BrowserStack Local
https://www.browserstack.com
MIT License
71 stars 56 forks source link

no multiple tunnel option #107

Open Gordiievskyi opened 4 years ago

Gordiievskyi commented 4 years ago

There is no option to run more than one tunnel, nor in documentation nor in code. But there is mention that one should use --parallel in case of multiple binaries run

Expected Behavior

Either documentation should state how to achieve it( generally aka spawn multiple time in the loop or state how to pass a list of desired tunnels)

Actual Behavior

No available documentation on how to start more then one tunnel from the same host using module

Steps to Reproduce the Problem

1.Open https://github.com/browserstack/browserstack-local-nodejs and look through it.

browserstack local arguments

Platform details

  1. browserstack-local-nodejs version:1.4.5
  2. node version:v12.16.1
  3. os type and version:10.14.6

Details

There is no option to run more than one tunnel, nor in documentation nor in code. But there is mention that one should use --parallel in case of multiple binaries run

shawnlobo96 commented 4 years ago

Hey @Gordiievskyi

The --parallel-runs flag is used to specify the number of parallel tests you are running. The binary will then spawn an appropriate number of forks for the binary. This does not start multiple tunnels.

In case you need to start multiple tunnels, you can use the local identifier option which should allow you to spawn multiple binaries. You will need to run multiple node processes with different local identifiers depending upon the number of tunnels you want to create.

https://github.com/browserstack/browserstack-local-nodejs#local-identifier