Merge pull request #5275 from totten/master-civimail-workflow
[civicrm-core.git] / tests / karma.conf.js
CommitLineData
416abe87
PH
1module.exports = function(config) {
2 config.set({
3 autoWatch: true,
4 basePath: '..',
5 browsers: ['Chrome'],
6 exclude: [
7 ],
8 files: [
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',
416abe87
PH
12 'packages/jquery/plugins/select2/select2.min.js',
13 'packages/jquery/plugins/jquery.blockUI.js',
14 'packages/jquery/plugins/jquery.validate.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',
27 'js/angular-*.js',
8ff76a1d 28 'js/angular-crmMailing/*.js',
416abe87
PH
29 'tests/karma/lib/*.js',
30 'tests/karma/**/*.js',
401f6f82 31 'partials/**/*.html'
416abe87 32 ],
401f6f82
TO
33 preprocessors : {
34 'partials/**/*.html' : ['ng-html2js']
35 },
36
37 ngHtml2JsPreprocessor: {
38 stripPrefix: 'partials/',
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};