0.1.1 • Published 6 years ago
karma-shell-reporter v0.1.1
:boom: Careful: This package is no longer maintained and is only here for historic reasons. This means you should very likely not use it. You have been warned. :boom:
karma-shell-reporter
Test reporter that runs a shell command after test completion (for Karma).
Usage
npm install karma-shell-reporter --save-dev
Add the following to your karma.conf.js:
plugins: ['karma-shell-reporter'],
reporters: ['shell'],
shellReporter: {
command: 'notify "My tests failed :("',
onlyOnWatch: true, // Only run the command when karma is in "watch" mode
onlyOnFail: true // Only run the command if at least one test failed
}