aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Tijhof <krinklemail@gmail.com>2018-01-12 18:09:42 +0000
committerTimmy Willison <4timmywil@gmail.com>2018-01-17 11:04:38 -0500
commit7eec97aab3476ea0094766dec958e2a0372feac3 (patch)
tree24bfc3500947713f40af5f54f95d364ad894294e
parent4765bb5c7840fc5f725f5bda38afcebc3730fbfc (diff)
downloadjquery-7eec97aab3476ea0094766dec958e2a0372feac3.tar.gz
jquery-7eec97aab3476ea0094766dec958e2a0372feac3.zip
Build: Add "-debug" suffix to name of karma debug tasks
Ref gh-3922 Close gh-3936
-rw-r--r--Gruntfile.js27
1 files changed, 15 insertions, 12 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 431e87557..096370a4f 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -211,22 +211,25 @@ module.exports = function( grunt ) {
autoWatch: false,
concurrency: 3,
captureTimeout: 20 * 1000,
-
- // To debug tests with Karma:
- // - Run 'grunt karma:chrome' or 'grunt karma:firefox'
- // (any karma subtask that has singleRun=false)
- // - Press "Debug" in the opened browser window.
- singleRun: false
+ singleRun: true
},
main: {
- browsers: [ "ChromeHeadless" ],
- singleRun: true
+ browsers: [ "ChromeHeadless" ]
},
- chrome: {
- browsers: [ "Chrome" ]
+
+ // To debug tests with Karma:
+ // 1. Run 'grunt karma:chrome-debug' or 'grunt karma:firefox-debug'
+ // (any karma subtask that has singleRun=false)
+ // 2. Press "Debug" in the opened browser window to start
+ // the tests. Unlike the other karma tasks, the debug task will
+ // keep the browser window open.
+ "chrome-debug": {
+ browsers: [ "Chrome" ],
+ singleRun: false
},
- firefox: {
- browsers: [ "Firefox" ]
+ "firefox-debug": {
+ browsers: [ "Firefox" ],
+ singleRun: false
}
},
watch: {