]> source.dussan.org Git - jquery.git/commitdiff
Build: Add "-debug" suffix to name of karma debug tasks
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 12 Jan 2018 18:09:42 +0000 (18:09 +0000)
committerTimmy Willison <4timmywil@gmail.com>
Wed, 17 Jan 2018 16:04:38 +0000 (11:04 -0500)
Ref gh-3922
Close gh-3936

Gruntfile.js

index 431e87557748c7d12ba5a208e1d56c04e7c88e68..096370a4f2433bcea449e450207fc09e2ce6edf0 100644 (file)
@@ -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: {