Skip to content

Commit 9a893be

Browse files
Japneet Singh ChawlaJapneet Singh Chawla
authored andcommitted
Merge branch 'master' into dev
2 parents 08656f9 + 9073a1d commit 9a893be

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

commands/utils/default_config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = {
2323
ignore_files: "",
2424
feature_file_suppport: false,
2525
network: false,
26+
headless: false,
2627
reporter_config_file: ""
2728
},
2829
tunnel_settings: {

commands/utils/set_args.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,16 @@ function sync_args_from_cmd(args) {
235235
} else if (!lt_config["run_settings"]["network"]) {
236236
lt_config["run_settings"]["network"] = false;
237237
}
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+
238248
//get specs from current directory if specs are not passed in config or cli
239249
if (
240250
(lt_config["run_settings"]["specs"] == undefined ||

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ const argv = require("yargs")
8787
describe: "Tunnel Auto Start",
8888
type: "string",
8989
})
90+
.option("headless", {
91+
alias: "headless",
92+
describe: "Run in headless mode",
93+
type: "boolean",
94+
})
9095
.option("net", {
9196
alias: "network",
9297
describe: "Capture Network logs",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lambdatest-cypress-cli",
3-
"version": "2.0.8",
3+
"version": "2.0.9",
44
"description": "The lambdatest-cypress-cli is LambdaTest's command-line interface (CLI) aimed to help you run your Cypress tests on LambdaTest platform.",
55
"homepage": "https://github.com/LambdaTest/lambdatest-cypress-cli",
66
"author": "LambdaTest <[email protected]>",

0 commit comments

Comments
 (0)