-
Notifications
You must be signed in to change notification settings - Fork 6
/
karma.conf.js
55 lines (55 loc) · 2.1 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
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['mocha', 'chai', 'sinon-chai', 'chai-as-promised', 'chai-things'],
client: {
mocha: {
timeout: 500
}
},
files: [
// bower:js
"public/bower_components/jquery/dist/jquery.js",
"public/bower_components/angular/angular.js",
"public/bower_components/angular-animate/angular-animate.js",
"public/bower_components/angular-aria/angular-aria.js",
"public/bower_components/angular-messages/angular-messages.js",
"public/bower_components/angular-material/angular-material.js",
"public/bower_components/angular-ui-router/release/angular-ui-router.js",
"public/bower_components/angular-smart-table/dist/smart-table.js",
"public/bower_components/angular-mocks/angular-mocks.js",
"public/bower_components/marked/lib/marked.js",
"public/bower_components/angular-md/dist/angular-md.min.js",
"public/bower_components/angular-simple-logger/dist/angular-simple-logger.js",
"public/bower_components/lodash/lodash.js",
"public/bower_components/angular-google-maps/dist/angular-google-maps.js",
"public/bower_components/photoswipe/dist/photoswipe.js",
"public/bower_components/photoswipe/dist/photoswipe-ui-default.js",
"public/bower_components/ng-photoswipe/angular-photoswipe.min.js",
"public/bower_components/flow.js/dist/flow.js",
"public/bower_components/ng-flow/dist/ng-flow.js",
// endbower
"public/app/ibeis.js",
"public/app/ibeis.routes.js",
"public/{app,components}/**/*.js",
"public/{app,components}/**/*.controller.js",
"public/{app,components}/**/**.html",
// tests
'public/{app,components}/**/*.{spec,mock}.js'
],
exclude: [],
port: 9090,
logLevel: config.LOG_INFO,
reporters: ['spec', 'coverage'],
preprocessors: {
'public/{app,components}/**/!(*.spec|*.mock).js': ['coverage']
},
coverageReporter: {
type: 'html',
dir: 'coverage/'
},
autoWatch: false,
browsers: ['PhantomJS'],
singleRun: false
});
};