forked from spbooks/angularjs1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
51 lines (41 loc) · 1.15 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
module.exports = function(config){
config.set({
basePath : '../',
preprocessors: {
"**/*.html": "ng-html2js" // Preprocessor
},
ngHtml2JsPreprocessor: {
stripPrefix: 'app/',
moduleName:'templates' //load this module in your tests
},
files : [
'app/lib/jquery/jquery.min.js',
'app/lib/angular/angular.js',
'app/lib/angular/angular-*.js',
'app/lib/angular-ui-router/angular-*.js',
'test/lib/angular/angular-mocks.js',
'app/js/**/*.js',
'app/modules/**/*.js',
'test/unit/**/*.js',
'app/modules/**/*.html' // Here are your templates.
],
exclude : [
'app/lib/angular/angular-loader.js',
'app/lib/angular/*.min.js',
'app/lib/angular/angular-scenario.js'
],
autoWatch : true,
frameworks: ['jasmine'],
browsers : ['Chrome'],
plugins : [
'karma-junit-reporter',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-jasmine',
'karma-ng-html2js-preprocessor'
],
junitReporter : {
outputFile: 'test_out/unit.xml',
suite: 'unit'
}
})}