forked from nidzix/superdesk-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
60 lines (48 loc) · 1.57 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
55
56
57
58
59
60
'use strict';
module.exports = function(config) {
config.set({
frameworks: [
'jasmine',
'requirejs'
],
preprocessors: {
'**/*.html': ['ng-html2js'],
'**/superdesk/**/*.js': ['coverage'],
'**/superdesk-*/**/*.js': ['coverage']
},
// list of files / patterns to load in the browser
files: [
'app/scripts/bower_components/jquery/dist/jquery.js',
'app/scripts/bower_components/angular/angular.js',
{pattern: 'app/**/*.js', included: false},
{pattern: 'app/scripts/superdesk/**/*[sS]pec.js', included: false},
'app/scripts/superdesk-*/**/views/*.html',
'app/scripts/superdesk/**/*.html',
'test-main.js'
],
// list of files to exclude
exclude: [
'app/scripts/bower_components/**/*[sS]pec.js',
'app/main.js'
],
ngHtml2JsPreprocessor: {
prependPrefix: '/base/',
moduleName: 'templates'
},
junitReporter: {
outputFile: 'test-results.xml'
},
// test results reporter to use
reporters: ['dots'],
// web server port
port: 8080,
// cli runner port
runnerPort: 9100,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// Start these browsers, currently available:
browsers: ['Chrome'],
// Continuous Integration mode
singleRun: false
});
};