Socket
Socket
Sign inDemoInstall

@wdio/jasmine-framework

Package Overview
Dependencies
276
Maintainers
3
Versions
395
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @wdio/jasmine-framework

A WebdriverIO plugin. Adapter for Jasmine testing framework.


Version published
Weekly downloads
45K
decreased by-0.62%
Maintainers
3
Install size
103 MB
Created
Weekly downloads
 

Readme

Source

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, via:

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'
  jasmineOpts: {
    defaultTimeoutInterval: 10000
  }
  // ...
};

jasmineOpts 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

requires

Require modules prior to requiring any helper or spec files.

Type: String[]
Default: []

helpers

Require helper files prior to requiring any spec files.

Type: String[]
Default: []


For more information on WebdriverIO see the homepage.

Keywords

FAQs

Last updated on 12 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc