germandavid85 / wdio-jasmine-framework

A WebdriverIO plugin. Adapter for Jasmine testing framework.

Home Page:http://webdriver.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WDIO Jasmine Build Status Code Climate Test Coverage

A WebdriverIO plugin. Adapter for Jasmine testing framework.

Installation

The easiest way is to keep wdio-jasmine-framework as a devDependency in your package.json.

{
  "devDependencies": {
    "wdio-jasmine-framework": "~0.2.3"
  }
}

You can simple do it by:

npm install wdio-jasmine-framework --save-dev

Instructions on how to install WebdriverIO can be found here.

Configuration

Following code shows the default wdio test runner configuration...

// wdio.conf.js
module.exports = {
  // ...
  framework: 'jasmine'
  jasmineNodeOpts: {
    defaultTimeoutInterval: 10000
  }
  // ...
};

jasmineNodeOpts Options

defaultTimeoutInterval

Timeout until specs will be marked as failed.

Type: Number
Default: 10000

expectationResultHandler

The Jasmine framework allows it to intercept each assertion in order to log the state of the application or website depending on the result. For example it is pretty handy to take a screenshot every time an assertion fails.

Type: Function
Default: null

grep

Option to selectively select it/describe cases to run from spec files.

Type: String[]
Default: []

invertGrep

Inverts 'grep' matches

Type: String[]
Default: []


For more information on WebdriverIO see the homepage.

About

A WebdriverIO plugin. Adapter for Jasmine testing framework.

http://webdriver.io/

License:MIT License


Languages

Language:JavaScript 100.0%