Skip to content

Commit 9bf4a55

Browse files
authored
Merge pull request #53 from LambdaTest/dev
Dev to master
2 parents 021a2c0 + 8a2823c commit 9bf4a55

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

commands/utils/archive.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +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"]){
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+
112122

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

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+
reporter_config_file: ""
2627
},
2728
tunnel_settings: {
2829
tunnel: false,

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.7",
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)