-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathkarma.conf.js
49 lines (46 loc) · 1.38 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
// Karma configuration
//
// For all available config options and default values, see:
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function (config) {
'use strict';
config.set({
autoWatch: true,
basePath: '',
browsers: ['Chrome'],
captureTimeout: 5000,
exclude: [
'app/js/main.js'
],
files: [
// loaded without require
'app/bower_components/jquery/dist/jquery.js',
'app/bower_components/underscore/underscore.js',
'app/bower_components/jasmine-jquery/lib/jasmine-jquery.js',
'app/bower_components/jasmine-flight/lib/jasmine-flight.js',
'app/bower_components/hogan/lib/template.js',
'app/bower_components/hogan/lib/compiler.js',
// loaded with require
{pattern: 'app/bower_components/flight/**/*.js', included: false},
{pattern: 'app/bower_components/flight-request/**/*.js', included: false},
{pattern: 'app/js/**/*.js', included: false},
{pattern: 'test/spec/**/*.spec.js', included: false},
// test config
'test/test-main.js'
],
frameworks: [
'jasmine',
'requirejs'
],
reporters: ['progress' , 'coverage'],
reportSlowerThan: 500,
singleRun: false,
preprocessors : {
'app/js/**/*.js' : 'coverage'
},
coverageReporter:{
dir: 'test/test-coverage-reports',
type: 'html'
}
});
};