karma-tldr-reporter
v1.0.0
Published
Minimal, greppable karma reporter made by the bpmn.io team
Downloads
3,473
Readme
karma-tldr-reporter
A minimal karma reporter optimized for humans and AI/log scrapers.
TL;DR:
- failures-only live output by default
--verbose/-vto stream every pass/skip line--grep/-gforwarded to mocha (run a subset of tests)- compact, greppable summary of failed tests at the end
Install
npm install --save-dev karma-tldr-reporterUsage
Keep your existing karma + webpack config. Just add the reporter:
// karma.conf.js
module.exports = function(config) {
config.set({
// ... your existing config ...
reporters: [ 'tldr' ]
});
};Options (CLI)
npm test # failures-only output
npm test -- --verbose # also print every pass/skip (alias: -v)
npm test -- --grep "should add" # run only matching tests (alias: -g, or --grep=...)Example output
ANSI color is used only when stdout is a TTY and NO_COLOR is unset.
License
MIT

