Skip to content

remove dead code and bump version #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,30 +49,6 @@ function create_base_reporter_config_file(args) {
if (args._.length == 1) {
create_file(constants.LT_BASE_REPORTER_CONFIG_FILE_NAME, content)
}
// else if (args._.length > 1) {
// //check if file or directory exists
// if (fs.existsSync(args._[1])) {
// let stats = fs.statSync(args._[1]);
// if (stats.isFile()) {
// make_file(args._[1], content)
// }
// else {
// create_file(path.join(args._[1], constants.LT_CONFIG_NAME), content)
// }
// }
// else {
// filename = path.basename(args._[1])
// var re = new RegExp(".+\\..+");
// if (re.test(filename)) {
// fs.mkdirSync(path.dirname(args._[1]), { recursive: true });
// create_file(args._[1], content)
// }
// else {
// fs.mkdirSync(args._[1], { recursive: true });
// create_file(path.join(args._[1], constants.LT_CONFIG_NAME), content)
// }
// }
// }
};

module.exports = function (args) {
Expand Down
1 change: 0 additions & 1 deletion commands/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ module.exports = function (args) {
*/

if (!("cypress_version" in lt_config.run_settings)){
console.log("user has not passed cypress version in run_SEttings");
lt_config.run_settings.cypress_version = cypressVersion;
}
batcher
Expand Down
1 change: 0 additions & 1 deletion commands/utils/batch/batch_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ function run_test(payload, env = "prod", rejectUnauthorized) {
}

async function run(lt_config, batches, env) {
console.log("ltconfig ---- ", lt_config);
totalBatches = batches.length;
//console.log("Total number of batches " + totalBatches);
return new Promise(function (resolve, reject) {
Expand Down
2 changes: 1 addition & 1 deletion commands/utils/default_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
},
],
run_settings: {
cypress_config_file: "cypress.json",
cypress_config_file: "cypress.config.js",
reporter_config_file: "base_reporter_config.json",
build_name: "build-name",
parallels: 1,
Expand Down
2 changes: 0 additions & 2 deletions commands/utils/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ module.exports = validate_config = function (lt_config, validation_configs) {

//validate if cypress config file is passed and exists

// coerce cypress_version
cypress_version = semver.coerce(cypress_version).version;
// validate cypress.json only in case of cypress<10
if (
Expand Down Expand Up @@ -240,7 +239,6 @@ module.exports = validate_config = function (lt_config, validation_configs) {
"Error!! Reporter JSON File has no keys, either remove Key reporter_config_file from lambdatest config or pass some options"
);
}else if (reporter_config.reporterEnabled && reporter_config.reporterEnabled != ""){
console.log("reporter_config.reporterEnabled ", reporter_config.reporterEnabled);
if (!reporter_config.reporterEnabled.includes("mochawesome")){
reject("Error!! Please add mochawesome in reporterEnabled and add the related config");
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lambdatest-cypress-cli",
"version": "2.5.4",
"version": "2.5.5",
"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 <[email protected]>",
Expand Down