File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ const caps = (bsConfig, zip) => {
7676 if ( obj . projectNotifyURL ) logger . info ( `Project notify URL is: ${ obj . projectNotifyURL } ` ) ;
7777
7878 obj . parallels = bsConfig . run_settings . parallels ;
79- if ( obj . parallels ) logger . info ( `Parallels specified are : ${ obj . parallels } ` ) ;
79+ if ( obj . parallels ) logger . info ( `Parallels limit specified : ${ obj . parallels } ` ) ;
8080
8181 var data = JSON . stringify ( obj ) ;
8282 resolve ( data ) ;
@@ -97,15 +97,15 @@ const validate = (bsConfig, args) => {
9797
9898 // validate parallels specified in browserstack.json if parallels are not specified via arguments
9999 if ( Utils . isUndefined ( args . parallels ) && ! Utils . isParallelValid ( bsConfig . run_settings . parallels ) ) {
100- reject ( Constants . validationMessages . INVALID_PARALLES_CONFIGURATION ) ;
100+ reject ( Constants . validationMessages . INVALID_PARALLELS_CONFIGURATION ) ;
101101 }
102102 // if parallels specified via arguments validate both parallels specifed in browserstack.json and parallels specified in arguments
103- if ( ! Utils . isUndefined ( args . parallels ) && ! Utils . isParallelValid ( args . parallels ) ) reject ( Constants . validationMessages . INVALID_PARALLES_CONFIGURATION ) ;
103+ if ( ! Utils . isUndefined ( args . parallels ) && ! Utils . isParallelValid ( args . parallels ) ) reject ( Constants . validationMessages . INVALID_PARALLELS_CONFIGURATION ) ;
104104
105105
106106 if ( ! args . parallels ) {
107107 if ( Number . isNaN ( bsConfig . run_settings . parallels ) || ( parseInt ( bsConfig . run_settings . parallels , 10 ) < 0 && parseInt ( bsConfig . run_settings . parallels , 10 ) != - 1 ) )
108- reject ( Constants . validationMessages . INVALID_PARALLES_CONFIGURATION )
108+ reject ( Constants . validationMessages . INVALID_PARALLELS_CONFIGURATION )
109109 } ;
110110
111111 resolve ( Constants . validationMessages . VALIDATED ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const validationMessages = {
2424 NOT_VALID : "browerstack.json is not valid" ,
2525 NOT_VALID_JSON : "browerstack.json is not a valid json" ,
2626 INVALID_EXTENSION : "Invalid files, please remove these files and try again." ,
27- INVALID_PARALLES_CONFIGURATION : "Invalid type of parallel, accepted values are positive or -1 " ,
27+ INVALID_PARALLELS_CONFIGURATION : "Invalid value specified for parallels to use. Maximum parallels to use should be a number greater than 0. " ,
2828} ;
2929
3030const cliMessages = {
@@ -47,7 +47,7 @@ const cliMessages = {
4747 STOP_MESSAGE : "Stopping build with given buildId "
4848 } ,
4949 RUN : {
50- PARALLEL_DESC : "Maximum number of parallels to run" ,
50+ PARALLEL_DESC : "The maximum number of parallels to use to run your test suite " ,
5151 INFO : "Run your tests on BrowserStack." ,
5252 DESC : "Path to BrowserStack config" ,
5353 CONFIG_DEMAND : "config file is required"
You can’t perform that action at this time.
0 commit comments