gulp-webdriver icon indicating copy to clipboard operation
gulp-webdriver copied to clipboard

Running tests is not dependent on key --suite

Open christian-bromann opened this issue 8 years ago • 6 comments

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

christian-bromann avatar Feb 15 '17 12:02 christian-bromann

What if you try

$ gulp test:remote -- --maxinstances 10 --suite nameOfSuite

?

christian-bromann avatar Feb 15 '17 12:02 christian-bromann

From @demshin on February 15, 2017 5:2

Than I have Task '--maxinstances' is not in your gulpfile at stacktrace.

christian-bromann avatar Feb 15 '17 12:02 christian-bromann

Hello! The problem is still relevant. There are any solutions?

demshin avatar Mar 02 '17 13:03 demshin

still not fixed ... looks like a main feature to me! workaround could be multiple wdio.config files ... how are you guys solving this?

ingemarson avatar Jun 22 '20 14:06 ingemarson

@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.

spatchamatla avatar Feb 26 '21 23:02 spatchamatla

@christian-bromann I take that back, it seems its ignoring args and just runs specs in wdio config file

spatchamatla avatar Mar 15 '21 03:03 spatchamatla