diff --git a/commands/default_custom_support_file.js b/commands/default_custom_support_file.js index fe47a12..3ef2b40 100644 --- a/commands/default_custom_support_file.js +++ b/commands/default_custom_support_file.js @@ -1,6 +1,9 @@ const addContext = require('mochawesome/addContext') // NOTE: import this file in cypress/support/e2e.js +// import '../../custom_support_file'; +// require('../../custom_support_file'); + Cypress.on('test:after:run', (test, runnable) => { if (test.state === 'failed') { let item = runnable @@ -20,9 +23,6 @@ Cypress.on('test:after:run', (test, runnable) => { .join(' -- ') // this is how cypress joins the test title fragments const imageUrl = `${fullTestName} (failed).png` - addContext({ test }, imageUrl) - - } }) diff --git a/commands/utils/archive.js b/commands/utils/archive.js index 64cf80b..89cd350 100644 --- a/commands/utils/archive.js +++ b/commands/utils/archive.js @@ -233,7 +233,7 @@ function archive_batch(lt_config, batch) { } else if (!lt_config["run_settings"]["cypress_config_file"]) { archive.append("{}", { name: constants.CYPRESS_CONFIG_NAME }); } - if (lt_config["run_settings"]["reporter_config_file"]) { + if (lt_config["run_settings"]["reporter_config_file"] && lt_config["run_settings"]["reporter_config_file"] !="") { if (fs.existsSync(lt_config["run_settings"]["reporter_config_file"])) { let rawdata = fs.readFileSync( lt_config["run_settings"]["reporter_config_file"] @@ -243,10 +243,6 @@ function archive_batch(lt_config, batch) { lt_config["run_settings"]["reporter_config_file"] ), }); - } else { - reject( - "Provided reporter config file not found. Please check the provided the value of reporter_config_file in lambdatest-config.json" - ); } } diff --git a/commands/utils/default_config.js b/commands/utils/default_config.js index 0ac42a2..d672eb6 100644 --- a/commands/utils/default_config.js +++ b/commands/utils/default_config.js @@ -20,7 +20,7 @@ module.exports = { reporter_config_file: "base_reporter_config.json", build_name: "build-name", parallels: 1, - specs: "./*.spec.js", + specs: "", ignore_files: "", network: false, headless: false, diff --git a/commands/utils/validate.js b/commands/utils/validate.js index c8c65b7..7e2d995 100644 --- a/commands/utils/validate.js +++ b/commands/utils/validate.js @@ -217,7 +217,7 @@ module.exports = validate_config = function (lt_config, validation_configs) { if (!("project" in lt_config.run_settings.smart_ui)) { reject("Smart UI project name is missing"); } else if (lt_config.run_settings.smart_ui.project == "") { - reject("Smart UI porject name can not be blank"); + reject("Smart UI project name can not be blank"); } } if ( @@ -225,8 +225,8 @@ module.exports = validate_config = function (lt_config, validation_configs) { lt_config["run_settings"]["reporter_config_file"] != "" ) { if (!fs.existsSync(lt_config["run_settings"]["reporter_config_file"])) { - reject( - "Error!! Reporter Config File does not exist, Pass a valid path" + console.log( + "Warning!! Reporter Config File does not exist, Commands section on dashboard may not get generated. Use lambdatest-cypress init command to generate." ); } else { let rawdata = fs.readFileSync( @@ -251,7 +251,7 @@ module.exports = validate_config = function (lt_config, validation_configs) { } } }else{ - console.log("Warning !! Value of reporter_config_file parameter missing. Proceeding with default reporter config") + console.log("Warning!! Value of reporter_config_file parameter missing. Proceeding with default reporter config") } if ( diff --git a/package-lock.json b/package-lock.json index b9b05f1..322dffe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { "name": "lambdatest-cypress-cli", - "version": "3.0.0", + "version": "3.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "3.0.0", + "version": "3.0.1", "license": "MIT", "dependencies": { "@lambdatest/node-tunnel": "^3.0.0", diff --git a/package.json b/package.json index 95553f7..7c1150d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lambdatest-cypress-cli", - "version": "3.0.0", + "version": "3.0.1", "description": "The lambdatest-cypress-cli is LambdaTest's command-line interface (CLI) aimed to help you run your Cypress tests on LambdaTest platform.", "homepage": "https://github.com/LambdaTest/lambdatest-cypress-cli", "author": "LambdaTest ",