karma-winston-reporter
v0.0.3
Published
Reports Karma test results using Winston.
Downloads
131
Readme
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.