Skip to content

Commit 7d65078

Browse files
committed
Reporter config changes
1 parent 4be0afc commit 7d65078

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

commands/run.js

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

commands/utils/archive.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ 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+
}
112117

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

commands/utils/batch/batch_runner.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ 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);
103104
run_test(payload, env)
104105
.then(function (session_id) {
105106
delete_archive(project_file);

commands/utils/constants.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@ module.exports = {
2020

2121
},
2222
stage: {
23-
INTEGRATION_BASE_URL: "https://stage-api.lambdatest.com/liis",
24-
BUILD_BASE_URL: "https://stage-api.lambdatest.com/automation/api/v1/builds/",
25-
BUILD_STOP_URL:"https://stage-api.lambdatest.com/api/v1/test/stop?buildId=",
26-
SESSION_URL:"https://stage-api.lambdatest.com/automation/api/v1/sessions?limit=200&session_id="
23+
// INTEGRATION_BASE_URL: "https://stage-api.lambdatest.com/liis",
24+
// BUILD_BASE_URL: "https://stage-api.lambdatest.com/automation/api/v1/builds/",
25+
// BUILD_STOP_URL:"https://stage-api.lambdatest.com/api/v1/test/stop?buildId=",
26+
// SESSION_URL:"https://stage-api.lambdatest.com/automation/api/v1/sessions?limit=200&session_id="
2727

28+
INTEGRATION_BASE_URL: "https://api.asad2.dev.lambdatest.io/liis",
29+
//INTEGRATION_BASE_URL: "http://127.0.0.1:4449/liis",
30+
BUILD_BASE_URL: "https://api.asad2.dev.lambdatest.io/automation/api/v1/builds/",
31+
BUILD_STOP_URL:"https://stage-api.lambdatest.com/api/v1/test/stop?buildId=",
32+
SESSION_URL:"https://api.asad2.dev.lambdatest.io/automation/api/v1/sessions?build_id="
2833
},
2934
beta: {
3035

commands/utils/default_config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module.exports={
2727
"ignore_files":"",
2828
"feature_file_suppport": false,
2929
"network": false,
30+
"reporter_config_file": ""
3031
},
3132
"tunnel_settings": {
3233
"tunnel": false,

0 commit comments

Comments
 (0)