@mochajs/json-file-reporter

1.3.0 • Public • Published

npm version JavaScript Style Guide

@mochajs/json-file-reporter

JSON file reporter for Mocha

Installation

$ npm i -D @mochajs/json-file-reporter

Usage

Use --reporter in your test command.

{
  "scripts": {
    "test": "mocha --reporter @mochajs/json-file-reporter"
  }
}

Or, add reporter to your configuration file.

{
  "reporter": "@mochajs/json-file-reporter"
}

Options

output

By default, it will output to report.json. To write to other file, use --reporter-options in your test command.

{
  "scripts": {
    "test": "mocha --reporter @mochajs/json-file-reporter --reporter-options output=filename.json"
  }
}

Or, add reporter-option to your configuration file.

{
  "reporter": "@mochajs/json-file-reporter",
  "reporter-option": [
    "output=filename.json"
  ]
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.09,090latest

Version History

VersionDownloads (Last 7 Days)Published
1.3.09,090
1.2.10
1.2.0173
1.1.00
1.0.00
0.3.00
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i @mochajs/json-file-reporter

Weekly Downloads

9,263

Version

1.3.0

License

MIT

Unpacked Size

5.58 kB

Total Files

4

Last publish

Collaborators

  • munierujp