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

Enhance Documentation - Include Test Suites #94

Description

@chris-stage

Hey!

I am trying to use grunt-webdriver to run test suites in sequence instead of running all spec files at once. Here is my conf.js file:

`exports.config = {
//
// ====================
// Runner Configuration
// ====================
//
// WebdriverIO allows it to run your tests in arbitrary locations (e.g. locally or
// on a remote machine).
runner: 'local',

//
// ==================
// Specify Test Files
// ==================
// Define which test specs should run. The pattern is relative to the directory
// from which `wdio` was called. Notice that, if you are calling `wdio` from an
// NPM script (see https://docs.npmjs.com/cli/run-script) then the current working
// directory is where your package.json resides, so `wdio` will be called from there.
//
specs: [
    './test/specs/login/**/*.js'
],
suites: {
    login_ui: [
        './test/specs/login/reporter_login_ui.spec.js',
        './test/specs/login/reporter_login_errors.spec.js'
    ],
    login: [
        './test/specs/login/reporter_login.spec.js',
        './test/specs/login/reporter_logout.spec.js'
    ],
    login_timeout: [
        './test/specs/login/reporter_login_timeout.spec.js',
        './test/specs/login/reporter_login_retry.spec.js'
    ],
    login_reject: [
        './test/specs/login/reporter_login_reject.spec.js'
    ]
},`

I am trying to solve the problem of having using the command line to execute suites in order:
./node_modules/.bin/wdio wdio.login.conf.js --suite login_ui
./node_modules/.bin/wdio wdio.login.conf.js --suite login
./node_modules/.bin/wdio wdio.login.conf.js --suite login_timeout

Any help would be much appreciated.

Thanks,
Chris

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions