Skip to content

Commit

Permalink
cli
Browse files Browse the repository at this point in the history
  • Loading branch information
gkushang committed Aug 27, 2019
1 parent 3c7f14f commit 1739c4b
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions packages/codeceptjs-cucumber/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const init = () => {
)
);

console.log(chalk.blue.underline.bold(
'\nWelcome to CodeceptJs-E2E CLI!'
console.log('\n\n' + emoji.emojify(':tada: ') + chalk.blue.underline.bold(
'Welcome to CodeceptJs-E2E CLI!'
));

console.log(
Expand Down Expand Up @@ -79,7 +79,19 @@ const askQuestions_toExecuteScenarios = () => {
]);
};

const addInfo = (username, key) => {

console.log('\n' +
chalk.bold.red(emoji.emojify(':information_desk_person: ') + 'It is recommended to export your Saucelabs Username and Access Key through your ./bash_profile or ./zshrc. Add following to your profile:') +
chalk.bold.red('\n\n' +
'export SAUCE_USERNAME=' + username +'\n' +
'export SAUCE_KEY='+ key + '\n\n')
);

};

const success = (filepath) => {

console.log('\n' +
chalk.white.bgRed.bold(emoji.emojify(':clap: :thumbsup:') + ` Done! Acceptance Tests Created at ${filepath}\n`)
);
Expand Down Expand Up @@ -110,6 +122,7 @@ const run = async () => {
shell.sed('-i', '<sauce_username>', SAUCE_USERNAME, configFile);
shell.sed('-i', '<sauce_username>', SAUCE_USERNAME, secretFile);
shell.sed('-i', '<sauce_key>', SAUCE_KEY, secretFile);
addInfo(SAUCE_USERNAME, SAUCE_KEY);
}

shell.sed('-i', './acceptance/', './' + RELATIVE_PATH +'/acceptance/', configFile);
Expand Down

0 comments on commit 1739c4b

Please sign in to comment.