stat-reporter

Gemini/Hermione plugin which helps to collect test statistic by browsers

stat-reporter

npm Build Status Coverage Status

Common plugin for:

which allows to collect and provide test statistic for each of used browsers.

You can read more about gemini plugins here and hermione plugins here.

Installation

npm install stat-reporter

Usage

Plugin has following configuration:

  • enabled (optional) Boolean – enable/disable the plugin; by default plugin is enabled
  • reporters (optional) Object - the list of statistic reporters
    • flat (optional) Object - flat (console) reporter configuration
      • enabled (optional) Boolean - enable/disable the flat reporter; by default reporter is enabled
    • html (optional) Object - html reporter configuration
      • enabled (optional) Boolean - enable/disable the html reporter; by default reporter is disabled
      • path (optional) String - path for saving html report file; by default html report will be saved into stat-reporter.html inside current work directory.
    • json (optional) Object - json reporter configuration
      • enabled (optional) Boolean - enable/disable the json reporter; by default reporter is disabled
      • path (optional) String - path for saving json report file; by default json report will be saved into stat-reporter.json inside current work directory.

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

Gemini usage

Add plugin to your gemini config file:

system:
  plugins:
    stat-reporter/gemini:
      enabled: true

Also reporter settings can be set explicitly:

system:
  plugins:
    stat-reporter/gemini:
      enabled: true
      reporters:
        flat:
          enabled: false
        html:
          enabled: true
          path: my/custom/report.html

Hermione usage

Add plugin to your hermione config file:

module.exports = {
    // ...
    plugins: {
        'stat-reporter/hermione': {
            enabled: true
        }
    },

    // ...
};

Testing

Run mocha tests:

npm run test-unit

Run tests with istanbul coverage calculation:

npm run cover

Run eslint codestyle verification

npm run lint

Special thanks to:

Related Repositories

stat-reporter

stat-reporter

Gemini/Hermione plugin which helps to collect test statistic by browsers ...