-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
72 lines (70 loc) · 1.57 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
70
71
72
// Copyright (c) 2019 Gonzalo Müller Bravo.
// Licensed under the MIT License (MIT), see LICENSE.txt
var webpackConfig = require('./webpack.config.test.js');
module.exports = function (config) {
config.set({
browsers: [ 'ChromeHeadlessNoSandBox' ],
customLaunchers: {
ChromeHeadlessNoSandBox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
files: ['testEntryPoint.js'],
port: 9876,
frameworks: [ 'jasmine' ],
preprocessors: {
'testEntryPoint.js': [ 'webpack']
},
webpack: webpackConfig,
webpackMiddleware: {
quiet: true,
stats: {
colors: true
}
},
reporters: [
'coverage-istanbul',
'html',
'junit',
'mocha'
],
coverageIstanbulReporter: {
dir: 'build/reports/coverage',
reports: [
'lcov',
'text',
'text-summary'
],
skipFilesWithNoCoverage: true,
fixWebpackSourcePath: true,
thresholds: {
global: {
statements: 97,
branches: 97,
functions: 97,
lines: 97,
},
each: {
statements: 95,
branches: 95,
functions: 95,
lines: 95,
}
}
},
htmlReporter: {
focusOnFailures: false,
namedFiles: true,
outputDir: 'build/reports/tests',
reportName: 'tests_report'
},
junitReporter: {
outputDir: '../../build/reports/tests',
outputFile: 'tests_report.xml',
useBrowserName: false
},
autoWatch: false,
singleRun: true
});
};