grunt-protractor-runner
grunt-protractor-runner copied to clipboard
suite doesn't work
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.
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.
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.