Skip to content

Commit

Permalink
lib: add suppressEpilogue option
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen committed Oct 29, 2017
1 parent 459023b commit 0b800a0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,21 @@ module.exports = {
};
```

If you do not want to print out the mocha epilogue (i.e. `1 passing (5.2s)`), you can suppress it:

```js
// wdio.conf.js
module.exports = {
// ...
reporters: ['json'],
reporterOptions: {
suppressEpilogue: true
},
// ...
};
```



## Sample Output
```
Expand Down
4 changes: 3 additions & 1 deletion lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class JsonReporter extends events.EventEmitter {
if(options.combined) {
this.combineJsons(resultJsons);
}
epilogue.call(baseReporter)
if (!options.suppressEpilogue){
epilogue.call(baseReporter)
}
})
}

Expand Down

0 comments on commit 0b800a0

Please sign in to comment.