diff --git a/lib/cli.js b/lib/cli.js index cfb927bcd..659680f7b 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -62,6 +62,11 @@ var processArgs = function(argv, options) { if (helper.isString(options.changedFiles)) { options.changedFiles = options.changedFiles.split(','); } + + if (helper.isString(options.refresh)) { + options.refresh = options.refresh === 'true'; + } + options.configFile = path.resolve(argv._.shift() || 'karma.conf.js'); return options; @@ -137,6 +142,7 @@ var describeRun = function() { 'Usage:\n' + ' $0 run []') .describe('port', ' Port where the server is listening.') + .describe('no-refresh', 'Do not re-glob all the patterns.') .describe('help', 'Print usage.'); }; diff --git a/lib/completion.js b/lib/completion.js index 33a99d959..5e8ccb617 100644 --- a/lib/completion.js +++ b/lib/completion.js @@ -23,6 +23,7 @@ var options = { '--help': BOOLEAN }, run: { + '--no-refresh': BOOLEAN, '--port': CUSTOM, '--help': BOOLEAN } diff --git a/lib/runner.js b/lib/runner.js index bce673005..a40dd999a 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -62,6 +62,7 @@ exports.run = function(config, done) { args: config.clientArgs, removedFiles: config.removedFiles, changedFiles: config.changedFiles, - addedFiles: config.addedFiles + addedFiles: config.addedFiles, + refresh: config.refresh })); };