-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
karma.conf.js
69 lines (68 loc) · 2.25 KB
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Karma configuration
// Generated on Thu Jul 05 2018 16:43:26 GMT+0530 (IST)
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
plugins: [
require('@chiragrupani/karma-chromium-edge-launcher'),
require('karma-chrome-launcher'),
require('karma-coverage'),
require('karma-firefox-launcher'),
require('karma-jasmine'),
require('karma-safari-launcher'),
require('karma-summary-reporter'),
],
files: [
// CSS files
'dist/style/dc.css',
// Helpers
'spec/helpers/*.js',
// JS code dependencies
'spec/3rd-party/*.js',
// Code to be tested
'dist/dc.js',
// Jasmine spec files
'spec/*spec.js'
],
exclude: [],
preprocessors: {},
// possible values: 'dots', 'progress'
reporters: ['progress', 'summary'],
summaryReporter: {
// 'failed', 'skipped' or 'all'
show: 'failed',
// Limit the spec label to this length
specLength: 100,
// Show an 'all' column as a summary
overviewColumn: true
},
customLaunchers: {
// See https://github.com/karma-runner/karma/issues/2603
// This is used by grunt:ci task, so, do not remove
ChromeNoSandboxHeadless: {
base: 'Chrome',
flags: [
'--no-sandbox',
// See https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
'--headless',
'--disable-gpu',
// Without a remote debugging port, Google Chrome exits immediately.
' --remote-debugging-port=9222'
]
},
FirefoxHeadless: {
base: 'Firefox',
flags: ['-headless']
}
},
port: 9876,
colors: true,
logLevel: 'INFO',
autoWatch: false,
browsers: ['FirefoxHeadless'],
browserConsoleLogOptions: {level: 'error'},
singleRun: true,
concurrency: Infinity
})
};