The other day I could not find an acceptable Karma task for Gulp, so I spent
some time on my own. Using Karma ~1.3.0 and Gulp ~3.9.0.
process.exit will stop the task, preventing weird error messages from
Gulp. I think Karma calls the complete method for each test file? I don’t know, either way it
makes the two dance well together.
One more thing, just a warning do not refactor the last task to match.