webdriverio/wdio-jasmine-framework

Name: wdio-jasmine-framework

Owner: WebdriverIO

Description: A WebdriverIO plugin. Adapter for Jasmine testing framework.

Created: 2015-09-13 21:08:58.0

Updated: 2018-05-02 22:37:57.0

Pushed: 2018-05-25 00:40:25.0

Homepage: http://webdriver.io/

Size: 180

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

WDIO Jasmine Framework Adapter

Build Status Test Coverage dependencies Status


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.


evDependencies": {
"wdio-jasmine-framework": "~0.2.20"


You can simple do it by:

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…

dio.conf.js
le.exports = {
 ...
amework: 'jasmine'
smineNodeOpts: {
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

Cleans up stack trace and removes all traces of node module packages

Type: Boolean
Default: true

random

Run specs in semi-random order

Type: Boolean
Default: false

Development

All commands can be found in the package.json. The most important are:

Watch changes:

m run watch

Run tests:

m test

n test with coverage report:
m run test:cover

Build package:

m build

For more information on WebdriverIO see the homepage.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.