Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/espekkaya/wdio-jasmine-reporter

WebdriverIO Jasmine Reporter Plugin
https://github.com/espekkaya/wdio-jasmine-reporter

Last synced: about 2 months ago
JSON representation

WebdriverIO Jasmine Reporter Plugin

Awesome Lists containing this project

README

        

# WDIO Mocha Reporter Plugin

This wdio plugin was created based on [this][0].

It was tested on Webdriverio v6 and v7.

## Installation

Firstly install in your devdependency

```bash
npm install @espekkaya/wdio-mocha-reporter --save-dev
```

## Configuration

Your wdio.conf.js file should look like this:

```js
import mochaReporter from '@espekkaya/wdio-mocha-reporter';

exports.config = {
// ...
reporters: [
mochaReporter
],
// ...
};
```

if you want to get aggregate result and save result into a json file;

```js
import mochaReporter from '@espekkaya/wdio-mocha-reporter';

exports.config = {
// ...
reporters: [
[mochaReporter, {
aggregateResultPah: './', // save json file path
isResetResult: false | true, // reset values from json file (default: true)
}],
],
// ...
};
```

Example of json file;

```json
{"TestStatus":{"PASSED":0,"FAILED":0,"SKIPPED":6}}
```

----

For more information on WebdriverIO see the [homepage][1].

[0]: https://github.com/andrewkeig/wdio-cucumber-reporter
[1]: http://webdriver.io