forked from rpocklin/angular-scroll-animate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
56 lines (47 loc) · 1.43 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
// 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/underscore/underscore.js',
'bower_components/sinonjs/sinon.js',
'bower_components/jasmine-sinon/lib/jasmine-sinon.js',
'bower_components/angular-mocks/angular-mocks.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'}
]
}
});
};