GithubHelp home page GithubHelp logo

isabella232 / stat-reporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gemini-testing/stat-reporter

0.0 0.0 0.0 776 KB

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

License: MIT License

JavaScript 99.33% CSS 0.27% HTML 0.40%

stat-reporter's Introduction

stat-reporter

npm Build Status

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

You can read more about 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).

Hermione usage

Add plugin to your hermione config file:

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

    // ...
};

Additional commands

Additional commands that are added to the tool for which this plugin is connected.

merge-stat-reports

Command that adds ability to merge reports which are created after running the tests.

Attention! This plugin works only for Hermione

Example of usage:

npx hermione merge-stat-reports src-report-1.json src-report-2.json --html dest-html-report --json 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

Special thanks to:

stat-reporter's People

Contributors

dmitriy-kiselyov avatar dudagod avatar j0tunn avatar oldskytree avatar tormozz48 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.