Skip to content

Commit c240fb0

Browse files
committed
bump version
1 parent 7d65078 commit c240fb0

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

commands/run.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ module.exports = function (args) {
3838
break;
3939
}
4040
}
41-
if (cli_flag == true) {
41+
if (cli_flag == false) {
4242
console.log(
4343
"Unsupported version detected!!!! Please upgrade your CLI to @latest"
4444
);
45-
// console.log("skipping version check");
4645
} else {
4746
if ("lambdatest-config-file" in args) {
4847
//sync arguments between lt config and command line

commands/utils/archive.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,16 @@ function archive_batch(lt_config, batch) {
109109
} else if ((!lt_config["run_settings"]["cypress_config_file"])) {
110110
archive.append("{}", { name: constants.CYPRESS_CONFIG_NAME });
111111
}
112-
if (lt_config["run_settings"]["reporter_config_file"] && fs.existsSync(lt_config["run_settings"]["reporter_config_file"])) {
113-
// console.log("reporter config file ", path.basename(lt_config["run_settings"]["reporter_config_file"]));
114-
let rawdata = fs.readFileSync(lt_config["run_settings"]["reporter_config_file"]);
115-
archive.append(rawdata, { name: path.basename(lt_config["run_settings"]["reporter_config_file"]) });
116-
}
112+
if (lt_config["run_settings"]["reporter_config_file"]){
113+
if (fs.existsSync(lt_config["run_settings"]["reporter_config_file"])) {
114+
let rawdata = fs.readFileSync(lt_config["run_settings"]["reporter_config_file"]);
115+
archive.append(rawdata, { name: path.basename(lt_config["run_settings"]["reporter_config_file"]) });
116+
}else{
117+
reject("Provided reporter config file not found. Please check the provided the value of reporter_config_file in lambdatest-config.json");
118+
}
119+
}
120+
121+
117122

118123
let lt_config_string = JSON.stringify(lt_config, null, 4);
119124
archive.append(lt_config_string, { name: constants.LT_CONFIG_NAME });

commands/utils/batch/batch_runner.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ async function run(lt_config, batches, env, i = 0) {
100100
access_key: lt_config["lambdatest_auth"]["access_key"],
101101
type: "cypress",
102102
});
103-
console.log("payload - ", payload);
104103
run_test(payload, env)
105104
.then(function (session_id) {
106105
delete_archive(project_file);

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