GithubHelp home page GithubHelp logo

isabella232 / wdio-jasmine-framework Goto Github PK

View Code? Open in Web Editor NEW

This project forked from webdriverio-boneyard/wdio-jasmine-framework

0.0 0.0 0.0 188 KB

A WebdriverIO v4 plugin. Adapter for Jasmine testing framework.

Home Page: http://webdriver.io/

License: MIT License

JavaScript 100.00%

wdio-jasmine-framework's Introduction

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.

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

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

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

stopOnSpecFailure

Stops spec execution on first fail (other specs continue running)

Type: Boolean
Default: false

Development

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

Watch changes:

$ npm run watch

Run tests:

$ npm test

# run test with coverage report:
$ npm run test:cover

Build package:

$ npm build

For more information on WebdriverIO see the homepage.

wdio-jasmine-framework's People

Contributors

anth0d avatar borisosipov avatar christian-bromann avatar cnishina avatar deltacircuit avatar evan-scott-zocdoc avatar finelord avatar gchqdeveloper911 avatar greenkeeper[bot] avatar jrobinson01 avatar just-boris avatar kurtharriger avatar patthiel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.