Skip to content

Commit 4f569fb

Browse files
Merge pull request #117 from LambdaTest/dev
Geo location support Release 2.4.0
2 parents 471577e + 8dbb70b commit 4f569fb

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

commands/utils/set_args.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,12 @@ function sync_args_from_cmd(args) {
268268
} else if (!lt_config["run_settings"]["cypress_settings"]) {
269269
lt_config["run_settings"]["cypress_settings"] = "";
270270
}
271+
//Check for geo location
272+
if ("geo_location" in args) {
273+
lt_config["run_settings"]["geo_location"] = args["geo_location"];
274+
} else if (!lt_config["run_settings"]["geo_location"]) {
275+
lt_config["run_settings"]["geo_location"] = "";
276+
}
271277

272278
//get specs from current directory if specs are not passed in config or cli
273279
if (

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ const argv = require("yargs")
106106
alias: "cypress_settings",
107107
describe: "Pass Cypress Settings",
108108
type: "string",
109+
})
110+
.option("geo", {
111+
alias: "geo_location",
112+
describe: "Pass Geo Country Code",
113+
type: "string",
109114
});
110115
},
111116
function (argv) {

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.3.0",
3+
"version": "2.4.0",
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)