Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

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.

Install

npm i karma-winston-reporter

DownloadsWeekly Downloads

0

Version

0.0.3

License

Apache-2.0

Last publish

Collaborators

  • avatar
  • avatar
  • avatar