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