grunt-protractor-runner icon indicating copy to clipboard operation
grunt-protractor-runner copied to clipboard

grunt-protractor-webdriver active standby with grunt-protractor-runner

Open GuillaumeUnice opened this issue 8 years ago • 0 comments

Hi, I use like lot of persons grunt-protractor-webdriver with grunt-protractor-runner.

But when I register Task when the protractor_webdriver is executed it block other task. This is my gruntFile :

protractor: {
      options: {
        keepAlive: false,
        configFile: 'test/protractor.conf.js'
      },
      run: {

         options: {
                    args: {
                        specs: ['test/e2e/**.spec.js']
                    }
                }
      }
    },
    /*jshint camelcase: false */
    protractor_webdriver: {
      start: {
        options: {
          command: 'webdriver-manager start'
        }
      }
    }
  grunt.loadNpmTasks('grunt-protractor-runner');
  grunt.registerTask('test', [
    'clean:server',
    'concurrent:test',
    'autoprefixer',
    //'karma:unit',
    'protractor_webdriver',
    'protractor:run'
  ]);

And the console display that

ic01@ic01-laptop:~/cloudunit/cu-manager/src/main/webapp$ grunt test
Running "clean:server" (clean) task
Cleaning .tmp...OK

Running "concurrent:test" (concurrent) task

    Running "compass:dist" (compass) task
    directory .tmp/styles
        write .tmp/styles/main.css (1.597s)

    Running "compass:server" (compass) task

    Done, without errors.


    Execution Time (2016-04-29 13:39:44 UTC)
    compass:dist       2s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 73%
    compass:server  745ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇ 27%
    Total 2.8s

Running "autoprefixer:dist" (autoprefixer) task
File .tmp/styles/main.css created.

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


Anybody have an idea? Thanks for help

GuillaumeUnice avatar May 02 '16 07:05 GuillaumeUnice