File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ module.exports = function (args) {
49
49
. sync_args_from_cmd ( args )
50
50
. then ( function ( lt_config ) {
51
51
//validate the config options
52
- validate ( lt_config )
52
+ validate ( lt_config , resp )
53
53
. then ( function ( ) {
54
54
batcher
55
55
. make_batches ( lt_config )
Original file line number Diff line number Diff line change @@ -262,6 +262,13 @@ function sync_args_from_cmd(args) {
262
262
if ( ! ( "downloads" in lt_config [ "run_settings" ] ) ) {
263
263
lt_config [ "run_settings" ] [ "downloads" ] = "" ;
264
264
}
265
+ //Check for cypress settings
266
+ if ( "cypress_settings" in args ) {
267
+ lt_config [ "run_settings" ] [ "cypress_settings" ] = args [ "cypress_settings" ] ;
268
+ } else if ( ! lt_config [ "run_settings" ] [ "cypress_settings" ] ) {
269
+ lt_config [ "run_settings" ] [ "cypress_settings" ] = "" ;
270
+ }
271
+
265
272
//get specs from current directory if specs are not passed in config or cli
266
273
if (
267
274
( lt_config [ "run_settings" ] [ "specs" ] == undefined ||
Original file line number Diff line number Diff line change 1
1
const fs = require ( "fs" ) ;
2
2
const constants = require ( "./constants.js" ) ;
3
- module . exports = validate_config = function ( lt_config ) {
3
+ module . exports = validate_config = function ( lt_config , validation_configs ) {
4
4
return new Promise ( function ( resolve , reject ) {
5
5
//validate auth keys are present
6
6
if (
@@ -166,7 +166,9 @@ module.exports = validate_config = function (lt_config) {
166
166
let setting_param = "" ;
167
167
for ( let i = 0 ; i < settings . length ; i ++ ) {
168
168
if (
169
- constants . BLACKLISTED_SETTINGS . includes ( settings [ i ] . split ( " " ) [ 0 ] )
169
+ validation_configs . blacklistCommands . includes (
170
+ settings [ i ] . split ( " " ) [ 0 ]
171
+ )
170
172
) {
171
173
settings_flag = false ;
172
174
setting_param = settings [ i ] . split ( " " ) [ 0 ] ;
Original file line number Diff line number Diff line change @@ -101,6 +101,11 @@ const argv = require("yargs")
101
101
alias : "exit-on-failure" ,
102
102
describe : "Exit With Code 1 on failure" ,
103
103
type : "string" ,
104
+ } )
105
+ . option ( "cy" , {
106
+ alias : "cypress_settings" ,
107
+ describe : "Pass Cypress Settings" ,
108
+ type : "string" ,
104
109
} ) ;
105
110
} ,
106
111
function ( argv ) {
You can’t perform that action at this time.
0 commit comments