teerapap / grunt-protractor-runner

A Grunt plugin for running protractor runner.
MIT License
149 stars 123 forks source link

It is confusing that `args` maps to `capabilities` #189

Open benjaminapetersen opened 7 years ago

benjaminapetersen commented 7 years ago

If I setup my gruntfile with something like this:

// protractor task
default: {
  options: {
    configFile: "test/protractor.conf.js",
    args: {
      baseUrl: grunt.option('baseUrl') || ("https://localhost:9000/" + contextRoot + "/"),
      browser: grunt.option('browser') ?
                grunt.option('browser') :
                isMac ?
                  'chrome' :
                  'firefox'
    }
  }
},

but also have the following in my protractor.conf.js:

multiCapabilities: [
  {'browserName': 'firefox'},
  {'browserName': 'chrome'}
  {'browserName': 'phantomjs'}
],

I will get feed back that I cannot use both capabilities and multiCapabilities together. It is not immediately clear that args maps to capabilities and will override multiCapabilities, this could either be clarified in docs or the args variable renamed.

Thanks!