Build: Add "-debug" suffix to name of karma debug tasks

Ref gh-3922
Close gh-3936
This commit is contained in:
Timo Tijhof 2018-01-12 18:09:42 +00:00 committed by Timmy Willison
parent 4765bb5c78
commit 7eec97aab3
No known key found for this signature in database
GPG Key ID: 5F0C8B73EF56CE6F

View 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
},
main: {
browsers: [ "ChromeHeadless" ],
singleRun: true
},
chrome: {
browsers: [ "Chrome" ]
main: {
browsers: [ "ChromeHeadless" ]
},
firefox: {
browsers: [ "Firefox" ]
// 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-debug": {
browsers: [ "Firefox" ],
singleRun: false
}
},
watch: {