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

suite doesn't work

Open ericwooley opened this issue 10 years ago • 5 comments

in the config file I have a suites defined

  suites: {
    createQuote: [
        'specs/EQ/createOppertunity.spec.js',
        'specs/EQ/CreateQuote.spec.js'
    ],
    config: [
        './specs/EQ/addE72.spec.js',
        './specs/EQ/addPremesisEquipment.spec.js',
        './specs/EQ/addXCVRSEquipment.spec.js',
        './specs/EQ/addSoftwareServiceVerify.spec.js'
    ],
    lineItemGrid: [
        './specs/line-item-grid/line-item-grid.spec.js',
        './specs/line-item-grid/changeDiscount.spec.js'
    ],
    output: [
        './specs/output/changeNodes.spec.js',
        './specs/output/EQOutput.spec.js',
    ]
  }

Running protractor straight from the command line gives me the correct results. Running protractor from grunt tells me that no files match.

ericwooley avatar Jun 24 '14 23:06 ericwooley

Which config file do you define suites? protractor config file or Gruntfile.js

Because now this plugins only supports suite which is a command-line argument of protractor command to specify suite name in the suites config in the protractor config file to run.

teerapap avatar Jul 05 '14 08:07 teerapap

Hi, I just ran into this as well - I use suite as string (like you specify) and it doesn't get passed through.

I added console.log(process.argv) to my protractor.conf.js and I just don't see it

protractor:{

            develop:{
                options: {
                    configFile:'protractor.conf.js',
                    suite: 'sanity'
                }
            }
}

and this is the console log I am getting

this is protractor process.argv [ '/usr/bin/node',
  '.../node_modules/protractor/bin/protractor',
  'protractor.conf.js' ]

i am on version "grunt-protractor-runner": "~2.0.0",

when I run with verbose I get:

Spawn node with arguments: .../node_modules/protractor/bin/protractor protractor.conf.js --verbose

I think I need to have

options: { args : { suite : 'sanity' } }

checking.. please correct me if I am wrong.

Exactly right. You must have the proper heirarchy. options: { args : { suite : 'sanity' } } I too ran into this and needed to nest everything in an options object.

cp4r3z avatar Aug 14 '17 19:08 cp4r3z