1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
# Settings
## options.reporter
Type: `String`
Default: `'grunt'`
Specifies the reporter you want to use. For example, `default`, `verbose` or `tap`.
## options.reporterOutput
Type: `Boolean`
Default: `false`
Specifies the file the `reporter`'s output should be saved to. For example, `tests.tap`.
## options.reporterOptions
Type: `Object`
Default: `{}`
Specifies the options passed to the `reporter`. For example, the `junit` reporter requires the `output` option
to be set:
```js
grunt.initConfig({
nodeunit: {
all: ['test/*_test.js'],
options: {
reporter: 'junit',
reporterOptions: {
output: 'outputdir'
}
}
}
});
```
|