-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
39 lines (36 loc) · 1.06 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
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
frameworks: ['mocha', 'requirejs', 'chai'],
files: [
'test/karma/main.js',
{ pattern: 'public/vendor/**/*.js', included: false, serve: true },
{ pattern: 'public/js/**/*.js', included: false, serve: true },
{ pattern: 'test/karma/**/*.js', included: false, serve: true }
],
exclude: [
'public/js/ng.js',
'public/js/ng_auth.js',
'public/js/vendor/*',
'public/js/controllers/admin/*'
],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'public/js/**/*.js': ['coverage']
},
reporters: ['progress', 'coverage'],
port: 9876,
colors: true,
logLevel: config.LOG_WARN,
autoWatch: false,
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome'],//, 'Firefox'],
singleRun: true,
coverageReporter: {
type: 'html',
dir: 'coverage-browser/'
}
});
};