From 4a280947c446fb32fdcd7e596b19e874456b1c40 Mon Sep 17 00:00:00 2001 From: MariuszTrybus Date: Wed, 3 Sep 2014 23:29:17 +0200 Subject: [PATCH] Run tests on build complete and on file change --- plugin.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin.js b/plugin.js index ee635e6..abb5b7c 100644 --- a/plugin.js +++ b/plugin.js @@ -3,7 +3,11 @@ var karma = require('karma'); var registration = function(config, register) { - if (config.karma && config.isWatch) { + if (config.karma) { + if (config.isWatch) { + register(['add', 'update', 'remove'], 'complete', _startKarma); + } + register(['postBuild'], 'complete', _startKarma); } };