Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

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

Open
christian-bromann opened this issue Feb 15, 2017 · 6 comments
Open

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

christian-bromann opened this issue Feb 15, 2017 · 6 comments

Comments

@christian-bromann
Copy link
Contributor

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
Copy link
Contributor Author

What if you try

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

?

@christian-bromann
Copy link
Contributor Author

From @demshin on February 15, 2017 5:2

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

@demshin
Copy link

demshin commented Mar 2, 2017

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

@ingemarson
Copy link

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

@spatchamatla
Copy link

spatchamatla commented Feb 26, 2021

@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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants