karma-winston-reporter

0.0.3 • Public • Published

karma-winston-reporter

Reports Karma test results using Winston.

Installation

npm install karma-winston-reporter --save-dev

Usage

From the command line

Will report results using the console transport (i.e. will do a console.log)

karma start --reporters winston

From karma.conf.js

module.exports = function (config) {
    config.set({
        ...
        reporters: ['winston'],
        ...
    });
};

Adding additional transports

module.exports = function (config) {
    config.set({
        ...
        reporters: ['winston'],
        winstonReporter: {
            transports: [
                new (winston.transports.Logstash)()
            ]
        }
    });
};

Future features

  • Add support for customising message formats.
  • Add support for reporting individual test results.

Package Sidebar

Install

npm i karma-winston-reporter

Weekly Downloads

28

Version

0.0.3

License

Apache-2.0

Last publish

Collaborators

  • atlassianartifactteam
  • dwalker
  • drew.walker
  • mdejongh