gulp-webdriver
gulp-webdriver copied to clipboard
Running tests is not dependent on key --suite
From @demshin on February 14, 2017 11:27
The problem
I'm runing tests with wdio (also cucumber) with key --suite nameOfSuite, but all tests run.
Environment
- WebdriverIO version: 4.6.2
- Node.js version: 6.9.5
- I run test via gulp
gulp test:remote --maxinstances 10 --suite nameOfSuite
- it's running on remote grid
- I'm using allure report
Details
there is part of my wdio.conf.js: `exports.config = {
host: argv.seleniumhost || '10.241.5.140',
port: 4444,
path: '/wd/hub',
specs: [
'./features/**/*.feature'
],
suites: {
regression: [
'./features/nsi/kpgz-spgz/*.feature',
'./features/bktz/libcontract/*.feature',
'./features/nsi/participant/*.feature',
'./features/nsi/reference/*.feature',
'./features/normalization/*.feature',
'./features/comission/*.feature'
],
scrum: [
'./features/scrum/**/*.feature'
],
nsi: [
'./features/nsi/kpgz-spgz/*.feature',
'./features/nsi/participant/*.feature',
'./features/nsi/reference/*.feature'
],
bktz: [
'./features/bktz/libcontract/*.feature',
'./features/bktz/criteria/*.feature'
],
normalization: [
'./features/normalization/*.feature'
],
comission: [
'./features/comission/*.feature'
]
}`
If you need more information I will provide.
Copied from original issue: webdriverio/webdriverio#1872
What if you try
$ gulp test:remote -- --maxinstances 10 --suite nameOfSuite
?
From @demshin on February 15, 2017 5:2
Than I have Task '--maxinstances' is not in your gulpfile
at stacktrace.
Hello! The problem is still relevant. There are any solutions?
still not fixed ... looks like a main feature to me! workaround could be multiple wdio.config files ... how are you guys solving this?
@christian-bromann @demshin hi, im able to resolve this based how protractor used to take arguments, so when I tried similar approach
.pipe(webdriver({
args: ['--suite', argv.suite]
}))
it worked for me.
@christian-bromann I take that back, it seems its ignoring args
and just runs specs
in wdio config file