0.0.3 • Published 9 years ago

karma-winston-reporter v0.0.3

Weekly downloads
62
License
Apache-2.0
Repository
bitbucket
Last release
9 years ago

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.