-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
48 lines (39 loc) · 1.03 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
'use strict';
module.exports = function(config){
config.set({
basePath : './',
singleRun: false,
files : [
'public/bower_components/angular/angular.js',
'public/bower_components/angular-ui-router/release/angular-ui-router.js',
'node_modules/angular-mocks/angular-mocks.js',
'node_modules/jquery/dist/jquery.min.js',
'public/app/**/*.html',
'public/app/**/*.js',
'test/app/**/*.js'
],
autoWatch : true,
frameworks: ['jasmine-jquery', 'jasmine'],
browsers : ['PhantomJS'],
//browsers : ['Chrome'],
plugins : [
'karma-chrome-launcher',
'karma-phantomjs-launcher',
'karma-jasmine',
'karma-jasmine-jquery',
'karma-junit-reporter',
'karma-ng-html2js-preprocessor'
],
preprocessors: {
'public/app/**/*.html': 'ng-html2js'
},
ngHtml2JsPreprocessor: {
stripPrefix: 'public/',
moduleName: 'templatesHtml'
},
junitReporter : {
outputFile: 'test_out/unit.xml',
suite: 'unit'
}
});
};