-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
138 lines (121 loc) · 4.97 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/* globals module */
'use strict';
module.exports = function (config) {
config.set({
basePath: 'client',
frameworks: ['jasmine'],
preprocessors: {
'**/*.html': ['ng-html2js'],
'!(bower_components)/**/!(*.spec, *.page).js': ['coverage']
},
ngHtml2JsPreprocessor: {
stripPrefix: 'client/',
moduleName: 'templates'
},
plugins: [
'karma-phantomjs-launcher',
'karma-jasmine',
'karma-ng-html2js-preprocessor',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-nyan-reporter',
'karma-coverage'
],
files: [
'./bower_components/jquery/dist/jquery.js',
'./bower_components/angular/angular.js',
'./bower_components/d3/d3.js',
'./bower_components/nvd3/nv.d3.js',
'./bower_components/angular-nvd3/dist/angular-nvd3.min.js',
'./bower_components/angular-animate/angular-animate.js',
'./bower_components/angular-mocks/angular-mocks.js',
'./bower_components/angular-aria/angular-aria.js',
'./bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
'./bower_components/moment/moment.js',
'./bower_components/angular-cookies/angular-cookies.js',
'./bower_components/angular-gravatar/build/angular-gravatar.js',
'./bower_components/angular-messages/angular-messages.js',
'./bower_components/angular-resource/angular-resource.js',
'./bower_components/angular-sanitize/angular-sanitize.js',
'./bower_components/angular-socket-io/socket.js',
'./bower_components/angular-toastr/dist/angular-toastr.tpls.js',
'./bower_components/angular-touch/angular-touch.js',
'./bower_components/angular-ui-grid/ui-grid.js',
'./bower_components/angular-ui-router/release/angular-ui-router.js',
'./bower_components/angular-ui-select/dist/select.js',
'./bower_components/autofill-event/src/autofill-event.js',
'./bower_components/fastdom/index.js',
'./bower_components/interact/interact.js',
'./bower_components/lodash/lodash.js',
'./bower_components/lodash-deep/lodash-deep.js',
'./bower_components/picturefill/dist/picturefill.js',
'./bower_components/moment-timezone/builds/moment-timezone-with-data-2010-2020.js',
'./bower_components/fastclick/lib/fastclick.js',
'./bower_components/angular-translate/angular-translate.js',
'./bower_components/angular-translate-loader-static-files/angular-translate-loader-static-files.js',
'./bower_components/angular-translate-storage-cookie/angular-translate-storage-cookie.js',
'./bower_components/angular-moment/angular-moment.js',
'./bower_components/angular-dynamic-locale/src/tmhDynamicLocale.js',
'./bower_components/angular-jwt/dist/angular-jwt.js',
'./bower_components/bootstrap/dist/js/bootstrap.js',
'./bower_components/bootstrap-tour/build/js/bootstrap-tour.js',
'./bower_components/bootstrap-tour/build/js/bootstrap-tour-standalone.js',
'./bower_components/angular-translate-storage-local/angular-translate-storage-local.js',
'./bower_components/angular-bootstrap-calendar/dist/js/angular-bootstrap-calendar-tpls.js',
'app.js',
'constants.js',
'values.js',
'views/**/*.js',
'views/**/*.html',
'services/**/*.js',
'interceptors/**/*.js',
'directives/**/*.js',
'directives/**/*.html',
//fixtures
{pattern: './bower_components/angular-i18n/angular-locale_*.js', watched: true, served: true, included: false}
],
exclude: [
'views/**/*.e2e.js',
'services/socket/socket.service.js',
'views/**/*.page.js'
],
//reporters: ['progress', 'coverage'],
reporters: ['nyan', 'coverage'],
//reporters: ['progress'],
//reporters: ['nyan'],
//reporters: ['nested'],
coverageReporter: {
// specify a common output directory
dir: 'build/reports/coverage',
reporters: [
// reporters not supporting the `file` property
{ type: 'html', subdir: 'report-html' },
{ type: 'lcov', subdir: 'report-lcov' },
// reporters supporting the `file` property, use `subdir` to directly
// output them in the `dir` directory
{ type: 'cobertura', subdir: '.', file: 'cobertura.txt' },
{ type: 'lcovonly', subdir: '.', file: 'report-lcovonly.txt' },
{ type: 'teamcity', subdir: '.', file: 'teamcity.txt' },
{ type: 'text', subdir: '.', file: 'text.txt' },
{ type: 'text-summary', subdir: '.', file: 'text-summary.txt' },
],
instrumenterOptions: {
istanbul: { noCompact: true }
}
},
port: 9876,
colors: true,
// possible values:
// config.LOG_DISABLE
// config.LOG_ERROR
// config.LOG_WARN
// config.LOG_INFO
// config.LOG_DEBUG
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['PhantomJS'],
//browsers: ['Chrome'],
//singleRun: false
singleRun: true
});
};