webdriverio-boneyard / gulp-webdriver

gulp-webdriver is a gulp plugin to run selenium tests with the WebdriverIO testrunner
http://webdriver.io
MIT License
76 stars 33 forks source link

Running tests is not dependent on key --suite #60

Open christian-bromann opened 7 years ago

christian-bromann commented 7 years ago

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

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 commented 7 years ago

What if you try

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

?

christian-bromann commented 7 years ago

From @demshin on February 15, 2017 5:2

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

demshin commented 7 years ago

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

ingemarson commented 4 years ago

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

spatchamatla commented 3 years ago

@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 commented 3 years ago

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