forked from johncar/al_ui_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
54 lines (42 loc) · 1.69 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
50
51
52
53
54
/*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',
{pattern: 'src/main/mocks/data/**/*.json', included: false, watched: true, served: true },
{pattern: 'src/main/**/*.js', included: false, served: true },
{pattern: 'src/test/main-test.js', included: true }, /* set up require framework and specify which tests to run */
{pattern: 'src/test/**/*.js', included: false, served: true } /* allow access to test configurations */
],
autoWatch: false,
colors: false,
logLevel: config.LOG_WARN,
frameworks: ['jasmine', 'requirejs'],
browsers: ['PhantomJS'],
reporters: ['progress', 'coverage', 'junit'],
preprocessors: {
'src/main/tmdb/**/*.js': 'coverage',
},
coverageReporter: {
reporters: [
{type: 'html', dir: 'src/main/coverage', subdir: 'PhantomJS' },
{type: 'cobertura', dir: 'coverage', subdir: 'PhantomJS' }
]
},
junitReporter: {
outputFile: 'src/main/integration/junit/unit-tests.xml',
outputDir: 'src/main/integration/junit/',
suite: ''
},
plugins: [
'karma-requirejs',
'karma-jasmine',
'karma-phantomjs-launcher',
'karma-coverage',
'karma-junit-reporter'
]
});
};