Commit | Line | Data |
---|---|---|
416abe87 PH |
1 | module.exports = function(config) { |
2 | config.set({ | |
3 | autoWatch: true, | |
5915de41 | 4 | browsers: ['PhantomJS'], |
416abe87 PH |
5 | exclude: [ |
6 | ], | |
7 | files: [ | |
6a77bdf4 | 8 | 'bower_components/phantomjs-polyfill/bind-polyfill.js', |
416abe87 PH |
9 | 'bower_components/jquery/dist/jquery.min.js', |
10 | 'bower_components/jquery-ui/jquery-ui.min.js', | |
b2df037d | 11 | 'bower_components/lodash-compat/lodash.min.js', |
e1ef4e11 | 12 | 'bower_components/select2/select2.min.js', |
416abe87 | 13 | 'packages/jquery/plugins/jquery.blockUI.js', |
3426f10d | 14 | 'bower_components/jquery-validation/dist/jquery.validate.min.js', |
401f6f82 | 15 | 'packages/jquery/plugins/jquery.timeentry.js', |
416abe87 PH |
16 | 'js/Common.js', |
17 | 'bower_components/angular/angular.js', | |
18 | 'bower_components/angular-file-upload/angular-file-upload.js', | |
19 | 'bower_components/angular-jquery-dialog-service/dialog-service.js', | |
20 | 'bower_components/angular-route/angular-route.js', | |
21 | 'bower_components/angular-mocks/angular-mocks.js', | |
22 | 'bower_components/angular-ui-sortable/sortable.js', | |
23 | 'bower_components/angular-ui-utils/ui-utils.js', | |
24 | 'bower_components/angular-unsavedChanges/dist/unsavedChanges.js', | |
25 | 'tests/karma/modules.js', | |
26 | 'js/crm.ajax.js', | |
4c78db19 TO |
27 | 'ang/*.js', |
28 | 'ang/**/*.js', | |
416abe87 PH |
29 | 'tests/karma/lib/*.js', |
30 | 'tests/karma/**/*.js', | |
4c78db19 | 31 | 'ang/**/*.html' |
416abe87 | 32 | ], |
401f6f82 | 33 | preprocessors : { |
4c78db19 | 34 | 'ang/**/*.html' : ['ng-html2js'] |
401f6f82 TO |
35 | }, |
36 | ||
37 | ngHtml2JsPreprocessor: { | |
4c78db19 | 38 | stripPrefix: 'ang/', |
401f6f82 TO |
39 | prependPrefix: '~/', |
40 | moduleName: 'crmResource' | |
41 | }, | |
416abe87 PH |
42 | frameworks: ['jasmine'], |
43 | logLevel: config.LOG_INFO, | |
44 | port: 9876, | |
45 | reporters: ['progress'], | |
8ae4e322 TO |
46 | junitReporter: { |
47 | outputFile: 'tests/output/karma.xml', | |
48 | suite: '' | |
49 | }, | |
416abe87 PH |
50 | singleRun: false |
51 | }); | |
52 | }; |