npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

@wdio/jasmine-framework

5.11.0 • Public • Published

WDIO Jasmine Framework Adapter

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": "^5.0.0"
  }
}

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

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

Type: RegExp | string
Default: undefined

invertGrep

Inverts 'grep' matches.

Type: Boolean
Default: false

cleanStack

Clean up stack trace and remove all traces of node module packages.

Type: Boolean
Default: true

random

Run specs in semi-random order.

Type: Boolean
Default: false

stopOnSpecFailure

Stops test suite (describe) execution on first spec (it) failure (other suites continue running)

Type: Boolean
Default: false

stopSpecOnExpectationFailure

Stops a spec (it) execution on a first expectation failure (other specs continue running)

Type: Boolean
Default: false


For more information on WebdriverIO see the homepage.

install

npm i @wdio/jasmine-framework

Downloadsweekly downloads

10,303

version

5.11.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability