-
Notifications
You must be signed in to change notification settings - Fork 108
/
karma.conf.js
59 lines (50 loc) · 1.62 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
// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// testing framework to use (jasmine/mocha/q unit/...)
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: [
'bower_components/jquery/dist/jquery.js',
'bower_components/angular/angular.js',
'bower_components/angular-bootstrap/ui-bootstrap.js',
'bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
'bower_components/underscore/underscore.js',
'bower_components/sinonjs/sinon.js',
'bower_components/jasmine-sinon/lib/jasmine-sinon.js',
'bower_components/angular-mocks/angular-mocks.js',
'bower_components/angular-ui-router/release/angular-ui-router.js',
'src/**/*.html',
'src/**/*.js'
],
exclude: [],
port: 8080,
logLevel: config.LOG_INFO,
singleRun: true,
autoWatch: false,
// coverage reporter generates the coverage
reporters: ['progress', 'coverage'],
preprocessors: {
'src/!(*spec).js': ['coverage'],
'src/**/*.html': ['ng-html2js']
},
ngHtml2JsPreprocessor: {
// you might need to strip the main directory prefix in the URL request
stripPrefix: 'src/',
moduleName: 'templates'
},
// optionally, configure the reporter
coverageReporter: {
dir: 'coverage',
subdir: '.',
reporters: [
{type: 'text-summary'},
{type: 'lcov'},
{type: 'clover'}
]
}
});
};