forked from ant-media/StreamApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.cjs
More file actions
63 lines (46 loc) · 1.35 KB
/
karma.conf.cjs
File metadata and controls
63 lines (46 loc) · 1.35 KB
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
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'chai', 'sinon'],
files: [
{ pattern: "src/test/**/*.js", type: "module" },
{ pattern: "src/main/webapp/js/external/video.js", included: true },
{ pattern: "src/main/webapp/js/external/dash.all.min.js", included: true },
{ pattern: "src/main/webapp/**/*.js", included: false },
],
reporters: ['progress', 'coverage'],
preprocessors: {
'src/main/webapp/js/*.js': ['coverage'],
},
coverageReporter: {
reporters: [
{type: 'lcov', dir:'coverage/lcov'},
{type: 'text'},
{type: 'html', dir:'coverage/html'}
],
},
port: 9876, // karma web server port
colors: true,
logLevel: config.LOG_INFO,
browsers: ['CustomChrome'],
//browsers: ['Chrome'],
customLaunchers: {
CustomChrome: {
base: 'Chrome',
flags: ['--headless',
'--disable-gpu',
"--disable-gpu",
"--headless=new",
"--no-sandbox",
"--disable-dev-shm-usage",
"--log-level=1",
"--remote-allow-origins=*",
"--use-fake-ui-for-media-stream",
"--use-fake-device-for-media-stream"]
}
},
autoWatch: true,
singleRun: true, // Karma captures browsers, runs the tests and exits
//singleRun: false,
concurrency: Infinity,
})
}