-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
executable file
·77 lines (69 loc) · 2.12 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
73
74
75
76
77
// Karma configuration
// http://karma-runner.github.io/0.12/config/configuration-file.html
// Generated on 2015-02-05 using
// generator-karma 0.9.0
module.exports = function(config) {
'use strict';
config.set({
autoWatch: false,
basePath: '',
frameworks: ['jasmine'],
files: [
// bower:js
// endbower
// injector:js
'src/app/app.js',
'src/app/_components/components.module.js',
'src/app/_components/dynamic-sample/dynamic-sample.module.js',
'src/app/_components/static-sample/static-sample.module.js',
'src/app/_header/header.module.js',
'src/app/sample/sample.module.js',
'src/app/app.config.js',
'src/app/sample/sample.config.js',
'src/app/_components/dynamic-sample/dynamic-sample.directive.js',
'src/app/_components/static-sample/static-sample.directive.js',
'src/app/_components/dynamic-sample/dynamic-sample.service.js',
'src/app/_components/static-sample/static-sample.service.js',
'src/app/_header/header.controller.js',
'src/app/sample/sample.controller.js',
'src/app/_components/dynamic-sample/dynamic-sample.service.spec.js',
'src/app/_components/static-sample/static-sample.service.spec.js',
// endinjector
],
exclude: [
],
port: 9998,
browsers: ['PhantomJS'],
phantomjsLauncher: {
exitOnResourceError: true
},
plugins: [
'karma-phantomjs-launcher',
'karma-jasmine',
'karma-coverage',
'karma-ng-html2js-preprocessor',
'karma-jshint-preprocessor'
],
reporters: ['progress', 'coverage'],
preprocessors: {
"src/app/**/*.template.html": ["ng-html2js"],
'src/app/**/!(*spec|*mock).js': ['jshint', 'coverage']
},
ngHtml2JsPreprocessor: {
moduleName: 'app',
stripPrefix: 'src/'
},
coverageReporter: {
dir: 'test-results/coverage/',
reporters: [{
type: 'html', subdir: 'report-html'
}, {
type: 'cobertura', subdir: '.', file: 'cobertura.xml'
}, {
type: 'lcovonly', subdir: '.', file: 'lcov.info'
}]
},
colors: true,
logLevel: config.LOG_INFO
});
};