-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathkarma.conf.js
More file actions
executable file
·39 lines (33 loc) · 921 Bytes
/
karma.conf.js
File metadata and controls
executable file
·39 lines (33 loc) · 921 Bytes
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
module.exports = function (config) {
config.set({
basePath: './',
frameworks: ['mocha', 'expect'],
files: [
'src/bower_components/angular/angular.js',
'src/bower_components/angular-mocks/angular-mocks.js',
'src/cqrs/module.js',
'src/cqrs/**/*.js',
'test/testUtils/**/*.js',
'test/unit/**/*.js'
// 'test/unit/ObjectIdServiceTest.js'
],
exclude: [
'karma.conf.js',
'karma-integration.conf.js'
],
preprocessors: {
// source files, that you wanna generate coverage for
// do not include tests or libraries
// (these files will be instrumented by Istanbul)
'src/cqrs/*.js': ['coverage']
},
logLevel: config.LOG_INFO,
browsers: ['PhantomJS'],
// web server port
port: 8081,
// cli runner port
runnerPort: 9000,
reporters: ['progress', 'coverage'],
captureTimeout: 7000
});
};