Skip to content

Commit

Permalink
Add example of using reporterOptions in readme.md (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacem authored and sindresorhus committed Dec 30, 2017
1 parent 5045939 commit 3f53145
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ gulp.task('default', () =>

#### options

Options are passed directly to the `mocha` binary, so you can use any its [command-line options](http://mochajs.org/#usage) in a camelCased form. Arrays are correctly converted to the comma separated list format Mocha expects. Listed below are some of the more commonly used options:
Options are passed directly to the `mocha` binary, so you can use any its [command-line options](http://mochajs.org/#usage) in a camelCased form. Arrays and key/value objects are correctly converted to the comma separated list format Mocha expects. Listed below are some of the more commonly used options:


##### ui
Expand All @@ -61,6 +61,13 @@ Reporter that will be used.

This option can also be used to utilize third-party reporters. For example, if you `npm install mocha-lcov-reporter` you can then do use `mocha-lcov-reporter` as value.

##### reporterOptions

Type: `Object`<br>
Example: `{reportFilename: 'index.html'}`

Reporter specific options.

##### globals

Type: `Array`
Expand Down

0 comments on commit 3f53145

Please sign in to comment.