Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webdriverio-boneyard/wdio-jasmine-framework
A WebdriverIO v4 plugin. Adapter for Jasmine testing framework.
https://github.com/webdriverio-boneyard/wdio-jasmine-framework
jasmine jasmine-framework jasmine-tests webdriverio
Last synced: 5 days ago
JSON representation
A WebdriverIO v4 plugin. Adapter for Jasmine testing framework.
- Host: GitHub
- URL: https://github.com/webdriverio-boneyard/wdio-jasmine-framework
- Owner: webdriverio-boneyard
- License: mit
- Archived: true
- Created: 2015-09-13T21:08:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-23T11:30:19.000Z (almost 6 years ago)
- Last Synced: 2025-01-03T08:05:51.931Z (19 days ago)
- Topics: jasmine, jasmine-framework, jasmine-tests, webdriverio
- Language: JavaScript
- Homepage: http://webdriver.io/
- Size: 184 KB
- Stars: 23
- Watchers: 11
- Forks: 23
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
WDIO Jasmine Framework Adapter
==============================[![Build Status](https://travis-ci.org/webdriverio/wdio-jasmine-framework.svg?branch=master)](https://travis-ci.org/webdriverio/wdio-jasmine-framework) [![Test Coverage](https://codeclimate.com/github/webdriverio/wdio-jasmine-framework/badges/coverage.svg)](https://codeclimate.com/github/webdriverio/wdio-jasmine-framework/coverage) [![dependencies Status](https://david-dm.org/webdriverio/wdio-jasmine-framework/status.svg)](https://david-dm.org/webdriverio/wdio-jasmine-framework)
***
> 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`.
```json
{
"devDependencies": {
"wdio-jasmine-framework": "~0.2.20"
}
}
```You can simple do it by:
```bash
npm install wdio-jasmine-framework --save-dev
```Instructions on how to install `WebdriverIO` can be found [here.](http://webdriver.io/guide/getstarted/install.html)
## Configuration
Following code shows the default wdio test runner configuration...
```js
// 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' matchesType: `Boolean`
Default: false### cleanStack
Cleans up stack trace and removes all traces of node module packagesType: `Boolean`
Default: true### random
Run specs in semi-random orderType: `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:
```sh
$ npm run watch
```Run tests:
```sh
$ npm test# run test with coverage report:
$ npm run test:cover
```Build package:
```sh
$ npm build
```----
For more information on WebdriverIO see the [homepage](http://webdriver.io).