allow disabling of the test watcher

This commit is contained in:
Spencer Alger 2014-03-07 11:25:40 -07:00
parent a286a0fc00
commit 84e24a975c
2 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,5 @@
module.exports = function (grunt) {
return {
var config = {
test: {
files: [
'<%= unitTestDir %>/**/*.js'
@ -26,4 +26,11 @@ module.exports = function (grunt) {
tasks: ['jade:clientside']
}
};
if (grunt.option('no-test-watcher')) {
// unset the test watcher
delete config.test;
}
return config;
};

View file

@ -11,7 +11,7 @@ module.exports = function (grunt) {
function onResponse(res) {
if (res.headers.pong === 'Kibana 4 Dev Server') {
grunt.log.write('server already started');
grunt.log.writeln('server already started');
} else {
grunt.log.error('another server is already running at localhost:8000!');
}