File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ module.exports = {
23
23
ignore_files : "" ,
24
24
feature_file_suppport : false ,
25
25
network : false ,
26
+ headless : false ,
26
27
reporter_config_file : ""
27
28
} ,
28
29
tunnel_settings : {
Original file line number Diff line number Diff line change @@ -235,6 +235,16 @@ function sync_args_from_cmd(args) {
235
235
} else if ( ! lt_config [ "run_settings" ] [ "network" ] ) {
236
236
lt_config [ "run_settings" ] [ "network" ] = false ;
237
237
}
238
+
239
+ if ( "headless" in args ) {
240
+ console . log ( "headlesss in args - value" , args [ "headless" ] ) ;
241
+ lt_config [ "run_settings" ] [ "headless" ] = args [ "headless" ]
242
+ } else if ( ! lt_config [ "run_settings" ] [ "headless" ] ) {
243
+ console . log ( "headless not present in lt config" )
244
+ lt_config [ "run_settings" ] [ "headless" ] = false ;
245
+ }
246
+
247
+
238
248
//get specs from current directory if specs are not passed in config or cli
239
249
if (
240
250
( lt_config [ "run_settings" ] [ "specs" ] == undefined ||
Original file line number Diff line number Diff line change @@ -87,6 +87,11 @@ const argv = require("yargs")
87
87
describe : "Tunnel Auto Start" ,
88
88
type : "string" ,
89
89
} )
90
+ . option ( "headless" , {
91
+ alias : "headless" ,
92
+ describe : "Run in headless mode" ,
93
+ type : "boolean" ,
94
+ } )
90
95
. option ( "net" , {
91
96
alias : "network" ,
92
97
describe : "Capture Network logs" ,
You can’t perform that action at this time.
0 commit comments