From 3f53145c5eae93332670f316c610a12fa08d2387 Mon Sep 17 00:00:00 2001 From: spacem Date: Sun, 31 Dec 2017 07:35:34 +1000 Subject: [PATCH] Add example of using reporterOptions in readme.md (#179) --- readme.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index e76d4f2..f09e030 100644 --- a/readme.md +++ b/readme.md @@ -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 @@ -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`
+Example: `{reportFilename: 'index.html'}` + +Reporter specific options. + ##### globals Type: `Array`