Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
config
specs
travis-conf
README.md
package-lock.json
package.json
wdio.conf.js
wdio.local.conf.js.example

README.md

Requirements

  • npm 2.x or newer
  • Google Chrome stable channel

Test environment

The tests are divided into two directories, backend & frontend, Travis runs on both directories in two separate commands in which each has a dedicated conf.js file pointing to the right baseUrl and directory under specs

Example of changing your local config to test the backend.

exports.config = merge(wdioConf.config, {
  baseUrl: 'http://localhost/drupal-elm-starter/www',
  specs: [
    './specs/backend/*.js'
  ]
});

Execute WebdriverIO tests

  1. npm install
  2. cp wdio.local.conf.js.example wdio.local.conf.js and set your local configurations.
  3. Choose which tests to execute (backend or frontend) by changing the baseUrl, specs directory. (Example above)
  4. Execute tests with ./node_modules/.bin/wdio wdio.local.conf.js (or just npm test from this directory).

Beware that you do not need to (should not) execute a standalone Selenium Server alongside WDIO to run the tests.

You can’t perform that action at this time.