karma-runner / gulp-karma

Example of using Karma with Gulp.
310 stars 41 forks source link

How do I 'pipe' the result of karma error to another stream? #11

Closed kibin closed 10 years ago

kibin commented 10 years ago

I have this question. Say I want to run gulp-notify when karma fails. What should I do to make this work?

pkozlowski-opensource commented 10 years ago

@kibin I don't think it makes sense to use gulp-notify in this case as - from what I understand - gulp-notify is meant to be use to report on vinyl files.

What I would suggest doing is to use https://github.com/mikaelbr/node-notifier directly in your gulp file and send a notification from Karma's callback.

I'm closing this one as it is more of a support question and as such would be better asked on Stack Overflow.

leocaseiro commented 9 years ago

I suggest the https://www.npmjs.com/package/karma-notify-reporter