Skip to content

Commit

Permalink
Merge branch 'MariuszTrybus-testfailure'
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigCav committed Sep 3, 2014
2 parents 893cc5f + bcd0d12 commit f219919
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions plugin.js
Expand Up @@ -9,8 +9,13 @@ var registration = function(config, register) {
};

var _startKarma = function(config, options, next) {
karma.server.start(config.karma);
next()
karma.server.start(config.karma, function(exitCode){
if (exitCode) {
config.log.error("Tests failed.", { exitIfBuild: true });
}

next();
});
};

module.exports = {
Expand Down

0 comments on commit f219919

Please sign in to comment.