-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathkarma.conf.js
More file actions
37 lines (36 loc) · 1.15 KB
/
karma.conf.js
File metadata and controls
37 lines (36 loc) · 1.15 KB
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
// Karma configuration
// Generated on Tue Feb 10 2015 14:46:14 GMT+0000 (GMT Standard Time)
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'node_modules/angular/angular.js',
'node_modules/angular-mocks/angular-mocks.js',
'node_modules/pouchdb/dist/pouchdb.js',
//Your app scripts {pattern: 'users/**/*.html', included: false, served: true},
'src/Model.js',
'src/**/*.js',
//And your specs
'tests/test-helpers.js',
'tests/**/*.test.js'
],
exclude: [
],
reporters: ['nicer', 'coverage'], //'dots', 'progress'
preprocessors: {
// source files, that you wanna generate coverage for
// do not include tests or libraries
// (these files will be instrumented by Istanbul)
'src/**/*.js': ['coverage']
},
port: 9876,
colors: true,
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_ERROR,
autoWatch: false,
browsers: ['PhantomJS'],//'Chrome' PhantomJS
singleRun: true,
concurrency: Infinity
});
};