forked from marcorinck/ngStart
-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
33 lines (33 loc) · 1.19 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
/*global module: true */
module.exports = function (config) {
"use strict";
config.set({
basePath: '.',
files: ['src/main/vendor/jquery/dist/jquery.min.js',
'src/main/vendor/angular/angular.js',
'JASMINE',
'JASMINE_ADAPTER',
'REQUIRE',
'REQUIRE_ADAPTER',
'src/test/main-test.js',
{pattern: 'src/main/**/*.js', included: false}],
autoWatch: false,
colors: true,
logLevel: config.LOG_DEBUG,
frameworks: ['jasmine', 'requirejs'],
browsers: ['PhantomJS'],
reporters: ['progress', 'coverage'],
preprocessors: {
// Add directories to pre-process to obtain code coverage reporting.
// EXAMPLE: 'src/main/common/**/*.js': 'coverage'
},
coverageReporter: {
reporters: [{type: 'html', dir: 'src/main/coverage'},
{type: 'cobertura', dir: 'coverage'}]
},
plugins: ['karma-requirejs',
'karma-jasmine',
'karma-phantomjs-launcher',
'karma-coverage']
});
};