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) => {
76
76
if ( obj . projectNotifyURL ) logger . info ( `Project notify URL is: ${ obj . projectNotifyURL } ` ) ;
77
77
78
78
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 } ` ) ;
80
80
81
81
var data = JSON . stringify ( obj ) ;
82
82
resolve ( data ) ;
@@ -97,15 +97,15 @@ const validate = (bsConfig, args) => {
97
97
98
98
// validate parallels specified in browserstack.json if parallels are not specified via arguments
99
99
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 ) ;
101
101
}
102
102
// 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 ) ;
104
104
105
105
106
106
if ( ! args . parallels ) {
107
107
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 )
109
109
} ;
110
110
111
111
resolve ( Constants . validationMessages . VALIDATED ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const validationMessages = {
24
24
NOT_VALID : "browerstack.json is not valid" ,
25
25
NOT_VALID_JSON : "browerstack.json is not a valid json" ,
26
26
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. " ,
28
28
} ;
29
29
30
30
const cliMessages = {
@@ -47,7 +47,7 @@ const cliMessages = {
47
47
STOP_MESSAGE : "Stopping build with given buildId "
48
48
} ,
49
49
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 " ,
51
51
INFO : "Run your tests on BrowserStack." ,
52
52
DESC : "Path to BrowserStack config" ,
53
53
CONFIG_DEMAND : "config file is required"
You can’t perform that action at this time.
0 commit comments