Skip to content

Commit f8c3a3f

Browse files
Japneet Singh ChawlaJapneet Singh Chawla
authored andcommitted
Merge branch 'MLE-6963' of github.com:japneetlambdatest/lambdatest-cypress-cli into MLE-6963
2 parents 735f3c3 + f86e350 commit f8c3a3f

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

commands/utils/batch/batch_runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function run_test(payload, env = "prod") {
6666

6767
async function run(lt_config, batches, env, i = 0) {
6868
totalBatches = batches.length;
69-
console.log("Total number of batches " + totalBatches);
69+
//console.log("Total number of batches " + totalBatches);
7070
return new Promise(function (resolve, reject) {
7171
//archive the project i.e the current working directory
7272
archive

commands/utils/default_config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ module.exports = {
77
{
88
browser: "Chrome",
99
platform: "Windows 10",
10-
versions: ["86.0"],
10+
versions: ["latest-1"],
1111
},
1212
{
1313
browser: "Firefox",
1414
platform: "Windows 10",
15-
versions: ["82.0"],
15+
versions: ["latest-1"],
1616
},
1717
],
1818
run_settings: {
@@ -24,7 +24,7 @@ module.exports = {
2424
feature_file_suppport: false,
2525
network: false,
2626
headless: false,
27-
reporter_config_file: ""
27+
reporter_config_file: "",
2828
},
2929
tunnel_settings: {
3030
tunnel: false,

commands/utils/poller/poller.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,21 @@ function poll_build(lt_config, session_id, env) {
2323
build_stats
2424
.get_completed_build_info(lt_config, session_id, env)
2525
.then(function (build_info) {
26-
stats = {};
26+
let stats = {};
27+
let status = [];
2728
for (i = 0; i < build_info["data"].length; i++) {
29+
status.push({
30+
Spec: build_info["data"][i]["name"],
31+
Status: build_info["data"][i]["status_ind"],
32+
Platform: build_info["data"][i]["platform"],
33+
Browser: build_info["data"][i]["browser"],
34+
Version: build_info["data"][i]["version"],
35+
});
2836
if (stats.hasOwnProperty(build_info["data"][i]["status_ind"])) {
2937
stats[build_info["data"][i]["status_ind"]] += 1;
3038
} else [(stats[build_info["data"][i]["status_ind"]] = 1)];
3139
}
40+
console.table(status);
3241
console.log(stats);
3342
if (
3443
Object.keys(stats).length == 1 &&

commands/utils/set_args.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ function sync_args_from_cmd(args) {
4949
"<Your LambdaTest access key>"
5050
) {
5151
if (process.env.LT_ACCESS_KEY) {
52-
console.log(
53-
"setting access key from environment",
54-
process.env.LT_ACCESS_KEY
55-
);
52+
console.log("setting access key from environment");
5653
lt_config["lambdatest_auth"]["access_key"] = process.env.LT_ACCESS_KEY;
5754
}
5855
} else if (
@@ -63,10 +60,7 @@ function sync_args_from_cmd(args) {
6360
if (!lt_config["lambdatest_auth"]) {
6461
lt_config["lambdatest_auth"] = {};
6562
}
66-
console.log(
67-
"Setting access key from environment",
68-
process.env.LT_ACCESS_KEY
69-
);
63+
console.log("Setting access key from environment");
7064
lt_config["lambdatest_auth"]["access_key"] = process.env.LT_ACCESS_KEY;
7165
}
7266

0 commit comments

Comments
 (0)