json-reporter

3.1.0 • Public • Published

json-reporter

npm Build Status

Common plugin for:

which is intended to aggregate the results of tests running.

You can read more about testplane plugins here.

Installation

npm install json-reporter

Usage

Plugin has following configuration:

  • enabled (optional) Boolean – enable/disable the plugin; by default plugin is enabled
  • path (optional) String - path for saving json report file; by default json report will be saved into json-reporter.json inside current work directory.

Also there is ability to override plugin parameters by CLI options or environment variables (see configparser).

Testplane usage

Add plugin to your testplane config file:

export default {
    // ...
    plugins: {
        'json-reporter/testplane': {
            enabled: true,
            path: 'my/custom/report.json'
        }
    },
    //...
}

Hermione usage

Add plugin to your hermione config file:

module.exports = {
    // ...
    plugins: {
        'json-reporter/hermione': {
            enabled: true,
            path: 'my/custom/report.json'
        }
    },
    //...
}

Testing

Run mocha tests:

npm run test-unit

Run tests with istanbul coverage calculation:

npm run cover

Run eslint codestyle verification

npm run lint

Package Sidebar

Install

npm i json-reporter

Weekly Downloads

21

Version

3.1.0

License

MIT

Unpacked Size

17.4 kB

Total Files

14

Last publish

Collaborators

  • egavr
  • rmdm
  • j0tunn
  • dudagod
  • sipayrt
  • flack
  • rostik404
  • kuznetsovroman