From 69cfc763c8f83e8e7e64d34e17829d0d3dcc0449 Mon Sep 17 00:00:00 2001 From: Jonathan Ginsburg Date: Mon, 31 Jan 2022 20:54:17 -0600 Subject: [PATCH] fix: warn when `singleRun` and `autoWatch` are `false` Setting `singleRun` and `autoWatch` to `false` will not immediately run anything. Warn the user about this. --- lib/server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/server.js b/lib/server.js index dc2314cdf..31b5306e0 100644 --- a/lib/server.js +++ b/lib/server.js @@ -96,6 +96,10 @@ class Server extends KarmaEventEmitter { this.log.debug('Final config', util.inspect(config, false, /** depth **/ null)) + if (!config.autoWatch && !config.singleRun) { + this.log.warn('`autowatch` and `singleRun` are both `false`. In order to execute tests use `karma run`.') + } + let modules = [{ helper: ['value', helper], logger: ['value', logger],