Skip to content

Commit 9095327

Browse files
authored
Merge pull request #189 from LambdaTest/dev
dev -> master
2 parents 0d64376 + 227c040 commit 9095327

File tree

6 files changed

+12
-16
lines changed

6 files changed

+12
-16
lines changed

commands/default_custom_support_file.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
const addContext = require('mochawesome/addContext')
22

33
// NOTE: import this file in cypress/support/e2e.js
4+
// import '../../custom_support_file';
5+
// require('../../custom_support_file');
6+
47
Cypress.on('test:after:run', (test, runnable) => {
58
if (test.state === 'failed') {
69
let item = runnable
@@ -20,9 +23,6 @@ Cypress.on('test:after:run', (test, runnable) => {
2023
.join(' -- ') // this is how cypress joins the test title fragments
2124

2225
const imageUrl = `${fullTestName} (failed).png`
23-
2426
addContext({ test }, imageUrl)
25-
26-
2727
}
2828
})

commands/utils/archive.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ function archive_batch(lt_config, batch) {
233233
} else if (!lt_config["run_settings"]["cypress_config_file"]) {
234234
archive.append("{}", { name: constants.CYPRESS_CONFIG_NAME });
235235
}
236-
if (lt_config["run_settings"]["reporter_config_file"]) {
236+
if (lt_config["run_settings"]["reporter_config_file"] && lt_config["run_settings"]["reporter_config_file"] !="") {
237237
if (fs.existsSync(lt_config["run_settings"]["reporter_config_file"])) {
238238
let rawdata = fs.readFileSync(
239239
lt_config["run_settings"]["reporter_config_file"]
@@ -243,10 +243,6 @@ function archive_batch(lt_config, batch) {
243243
lt_config["run_settings"]["reporter_config_file"]
244244
),
245245
});
246-
} else {
247-
reject(
248-
"Provided reporter config file not found. Please check the provided the value of reporter_config_file in lambdatest-config.json"
249-
);
250246
}
251247
}
252248

commands/utils/default_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
reporter_config_file: "base_reporter_config.json",
2121
build_name: "build-name",
2222
parallels: 1,
23-
specs: "./*.spec.js",
23+
specs: "<path_of_cypress_spec_files>",
2424
ignore_files: "",
2525
network: false,
2626
headless: false,

commands/utils/validate.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,16 +217,16 @@ module.exports = validate_config = function (lt_config, validation_configs) {
217217
if (!("project" in lt_config.run_settings.smart_ui)) {
218218
reject("Smart UI project name is missing");
219219
} else if (lt_config.run_settings.smart_ui.project == "") {
220-
reject("Smart UI porject name can not be blank");
220+
reject("Smart UI project name can not be blank");
221221
}
222222
}
223223
if (
224224
lt_config["run_settings"]["reporter_config_file"] &&
225225
lt_config["run_settings"]["reporter_config_file"] != ""
226226
) {
227227
if (!fs.existsSync(lt_config["run_settings"]["reporter_config_file"])) {
228-
reject(
229-
"Error!! Reporter Config File does not exist, Pass a valid path"
228+
console.log(
229+
"Warning!! Reporter Config File does not exist, Commands section on dashboard may not get generated. Use lambdatest-cypress init command to generate."
230230
);
231231
} else {
232232
let rawdata = fs.readFileSync(
@@ -251,7 +251,7 @@ module.exports = validate_config = function (lt_config, validation_configs) {
251251
}
252252
}
253253
}else{
254-
console.log("Warning !! Value of reporter_config_file parameter missing. Proceeding with default reporter config")
254+
console.log("Warning!! Value of reporter_config_file parameter missing. Proceeding with default reporter config")
255255
}
256256

257257
if (

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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": "3.0.0",
3+
"version": "3.0.1",
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 <keys@lambdatest.com>",

0 commit comments

Comments
 (0)