Skip to content
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

logging is not intuitive #12

Open
Jeff-Symphony opened this issue Jan 19, 2015 · 0 comments
Open

logging is not intuitive #12

Jeff-Symphony opened this issue Jan 19, 2015 · 0 comments

Comments

@Jeff-Symphony
Copy link

I added an additional subtask to update webdriver (using grunt-shell the way you do in your test seems counter intuitive to using this plugin)

protractor_webdriver: {
    start: {},
    update: {
        options: {
          command: 'webdriver-manager update'
        }
    }
}

But this is the output I get when I run that task:

Running "protractor_webdriver:update" (protractor_webdriver) task
Starting Selenium server

It's your plugin, so you can probably do something more interesting than this:

        function start() {
            if(options.command.indexOf('update') != -1){
                grunt.log.writeln('Updating'.cyan + ' Selenium server');
            }else{
                grunt.log.writeln((restartedPrefix + 'tarting').cyan + ' Selenium server');
            }
-------------------------
        function data(out) {
            if(options.command.indexOf('update') != -1){
                grunt.log.writeln('>> '.yellow + out);
            }else{
                grunt.verbose.writeln('>> '.red + out);
            }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant