Skip to content

3.0.6 #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 18, 2022
Merged

3.0.6 #209

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions commands/utils/set_args.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function sync_args_from_cmd(args) {
process.env.LT_USERNAME
);
lt_config["lambdatest_auth"]["username"] = process.env.LT_USERNAME;
}
}
} else if (
process.env.LT_USERNAME &&
(!("lambdatest_auth" in lt_config) ||
Expand All @@ -41,7 +41,9 @@ function sync_args_from_cmd(args) {
lt_config["lambdatest_auth"] = {};
}
lt_config["lambdatest_auth"]["username"] = process.env.LT_USERNAME;
}
}else if ("username" in args && args["username"]!=""){
lt_config["lambdatest_auth"]["username"] = args["username"];
}

if (
"lambdatest_auth" in lt_config &&
Expand All @@ -63,6 +65,8 @@ function sync_args_from_cmd(args) {
}
console.log("Setting access key from environment");
lt_config["lambdatest_auth"]["access_key"] = process.env.LT_ACCESS_KEY;
}else if ("access_key" in args && args["access_key"]!=""){
lt_config["lambdatest_auth"]["access_key"] = args["access_key"];
}

if (!("browsers" in lt_config) || lt_config["browsers"].length == 0) {
Expand Down Expand Up @@ -371,13 +375,13 @@ function sync_args_from_cmd(args) {
if ("exclude_specs" in lt_config["run_settings"]) {
lt_config["run_settings"]["exclude_specs"] =
lt_config["run_settings"]["exclude_specs"].split(",");
console.log(
"specs to exclude are",
lt_config["run_settings"]["exclude_specs"]
);
} else {
lt_config["run_settings"]["exclude_specs"] == [];
}
console.log(
"specs to exclude are",
lt_config["run_settings"]["exclude_specs"]
);

if ("npm-f" in args) {
if (args["npm-f"] == "true") {
Expand Down
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ const argv = require("yargs")
describe: "path of the config file",
type: "string",
})
.option("user", {
alias: "username",
describe: "Lambdatest Username of User",
type: "string",
})
.option("ak", {
alias: "access_key",
describe: "Lambdatest Access Key of User",
type: "string",
})
.option("lcf", {
alias: "lambdatest-config-file",
describe: "path of the lambdatest config file",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lambdatest-cypress-cli",
"version": "3.0.5",
"version": "3.0.6",
"description": "The lambdatest-cypress-cli is LambdaTest's command-line interface (CLI) aimed to help you run your Cypress tests on LambdaTest platform.",
"homepage": "https://github.com/LambdaTest/lambdatest-cypress-cli",
"author": "LambdaTest <[email protected]>",
Expand Down