-
Notifications
You must be signed in to change notification settings - Fork 8
/
karma.conf.js
43 lines (42 loc) · 1.22 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
'use strict';
module.exports = function (config) {
config.set({
basePath: './',
files: [
'www/bower_components/ionic/release/js/ionic.bundle.js',
'www/bower_components/angular-mocks/angular-mocks.js',
'www/core/**/*.js',
'www/common/**/*.js',
'www/assets/**/*.js',
'tests/unit/**/*.js'
],
exclude: [],
preprocessors: {
'www/!(bower_components)/**/!(*Spec).js': ['coverage']
},
reporters: ['dots', 'junit', 'coverage'],
autoWatch: true,
colors: true,
frameworks: ['jasmine'],
browsers: ['Chrome', 'Firefox', 'PhantomJS'],
plugins: [
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-phantomjs-launcher',
'karma-jasmine',
'karma-junit-reporter',
'karma-coverage'
],
singleRun: false,
coverageReporter: {
type: 'lcov',
dir: 'coverage/'
},
junitReporter: {
outputDir: 'unit-test-results',
outputFile: 'testoutput.xml',
useBrowserName: true,
suite: 'unit'
}
});
};