@@ -52,15 +52,23 @@ describe('Local', function () {
52
52
it ( 'should enable verbose' , function ( done ) {
53
53
bsLocal . start ( { 'key' : process . env . BROWSERSTACK_ACCESS_KEY , onlyCommand : true , 'verbose' : true } , function ( ) {
54
54
expect ( bsLocal . getBinaryArgs ( ) . indexOf ( '--verbose' ) ) . to . not . equal ( - 1 ) ;
55
- expect ( bsLocal . getBinaryArgs ( ) . indexOf ( 1 ) ) . to . not . equal ( - 1 ) ;
55
+ expect ( bsLocal . getBinaryArgs ( ) . indexOf ( '1' ) ) . to . not . equal ( - 1 ) ;
56
56
done ( ) ;
57
57
} ) ;
58
58
} ) ;
59
59
60
60
it ( 'should enable verbose with log level' , function ( done ) {
61
61
bsLocal . start ( { 'key' : process . env . BROWSERSTACK_ACCESS_KEY , onlyCommand : true , 'verbose' : 2 } , function ( ) {
62
62
expect ( bsLocal . getBinaryArgs ( ) . indexOf ( '--verbose' ) ) . to . not . equal ( - 1 ) ;
63
- expect ( bsLocal . getBinaryArgs ( ) . indexOf ( 2 ) ) . to . not . equal ( - 1 ) ;
63
+ expect ( bsLocal . getBinaryArgs ( ) . indexOf ( '2' ) ) . to . not . equal ( - 1 ) ;
64
+ done ( ) ;
65
+ } ) ;
66
+ } ) ;
67
+
68
+ it ( 'should enable verbose with log level string' , function ( done ) {
69
+ bsLocal . start ( { 'key' : process . env . BROWSERSTACK_ACCESS_KEY , onlyCommand : true , 'verbose' : '2' } , function ( ) {
70
+ expect ( bsLocal . getBinaryArgs ( ) . indexOf ( '--verbose' ) ) . to . not . equal ( - 1 ) ;
71
+ expect ( bsLocal . getBinaryArgs ( ) . indexOf ( '2' ) ) . to . not . equal ( - 1 ) ;
64
72
done ( ) ;
65
73
} ) ;
66
74
} ) ;
@@ -157,6 +165,22 @@ describe('Local', function () {
157
165
} ) ;
158
166
} ) ;
159
167
168
+ it ( 'should set parallelRuns' , function ( done ) {
169
+ bsLocal . start ( { 'key' : process . env . BROWSERSTACK_ACCESS_KEY , onlyCommand : true , 'parallelRuns' : '10' } , function ( ) {
170
+ expect ( bsLocal . getBinaryArgs ( ) . indexOf ( '-parallel-runs' ) ) . to . not . equal ( - 1 ) ;
171
+ expect ( bsLocal . getBinaryArgs ( ) . indexOf ( '10' ) ) . to . not . equal ( - 1 ) ;
172
+ done ( ) ;
173
+ } ) ;
174
+ } ) ;
175
+
176
+ it ( 'should set parallelRuns with integer value' , function ( done ) {
177
+ bsLocal . start ( { 'key' : process . env . BROWSERSTACK_ACCESS_KEY , onlyCommand : true , 'parallelRuns' : 10 } , function ( ) {
178
+ expect ( bsLocal . getBinaryArgs ( ) . indexOf ( '-parallel-runs' ) ) . to . not . equal ( - 1 ) ;
179
+ expect ( bsLocal . getBinaryArgs ( ) . indexOf ( '10' ) ) . to . not . equal ( - 1 ) ;
180
+ done ( ) ;
181
+ } ) ;
182
+ } ) ;
183
+
160
184
it ( 'should set proxy' , function ( done ) {
161
185
bsLocal . start ( {
162
186
'key' : process . env . BROWSERSTACK_ACCESS_KEY ,
0 commit comments