-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
30 lines (30 loc) · 890 Bytes
/
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
module.exports = function( config ) {
config.set({
basePath: '',
autoWatch: true,
frameworks: [ 'qunit' ],
files: [
// Because of dependency resolution, we need to specify all files in order
// instead of using **/*.js.
'assets/components/jquery/dist/jquery.js',
'assets/components/underscore/underscore.js',
'assets/components/backbone/backbone.js',
'assets/components/nanoscroller/bin/javascripts/jquery.nanoscroller.js',
'app/js/models.js',
'app/js/views.js',
'app/js/core.js',
'tests/**/*.js'
],
browsers: [ 'PhantomJS' ],
phantomjsLauncher: {
exitOnResourceError: true
},
reporters: [ 'progress', 'coverage', 'coveralls' ],
preprocessors: { 'app/**/*.js': [ 'coverage' ] },
singleRun: true,
coverageReporter: {
type: 'lcov',
dir: 'coverage/'
}
});
};