Skip to content

Commit 9dd6ad2

Browse files
Add binarypath back to readme and getBinaryArgs
1 parent d7e92e0 commit 9dd6ad2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ bs_local_args = { 'key': '<browserstack-accesskey>', 'localIdentifier': 'randoms
9090

9191
## Additional Arguments
9292

93+
#### Binary Path
94+
95+
By default, BrowserStack local wrappers try downloading and executing the latest version of BrowserStack binary in ~/.browserstack or the present working directory or the tmp folder by order. But you can override these by passing the -binarypath argument.
96+
Path to specify local Binary path -
97+
```node
98+
bs_local_args = { 'key': '<browserstack-accesskey>', 'binarypath': '/browserstack/BrowserStackLocal' }
99+
```
93100

94101
#### Logfile
95102
To save the logs to the file while running with the '-v' argument, you can specify the path of the file. By default the logs are saved in the local.log file in the present woring directory.

lib/Local.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ function Local(){
200200
this.parallelRunsFlag = value;
201201
break;
202202

203+
case 'binarypath':
204+
if(value)
205+
this.binaryPath = value;
206+
break;
207+
203208
default:
204209
if(value.toString().toLowerCase() == 'true'){
205210
this.userArgs.push('--' + key);

0 commit comments

Comments
 (0)