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 ff1af48 commit 9409770
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/codeceptjs-cucumber/cli.js
Original file line number Diff line number Diff line change
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', '<name>', PROJECT_NAME, configFile);
Expand Down

0 comments on commit 9409770

Please sign in to comment.