blob: 1b8277faedd5c675b0e0224695b4d342ab17a311 [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001// Karma configuration
2
3module.exports = function (config) {
4 config.set({
5
6 // base path, that will be used to resolve files and exclude
7 basePath: '../',
8
9
10 // frameworks to use
11 frameworks: ['jasmine'],
12
13 // list of files / patterns to load in the browser
14 files: [
15 'bower_components/jquery/dist/jquery.js',
16 'bower_components/angular/angular.js',
17 'bower_components/angular-base64/angular-base64.js',
18 'bower_components/angular-base64-upload/src/angular-base64-upload.js',
19 'bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
20 'bower_components/jquery-ui/jquery-ui.js',
21 'bower_components/angular-dragdrop/src/angular-dragdrop.js',
22 'bower_components/angular-filter/dist/angular-filter.min.js',
23 'bower_components/angular-md5/angular-md5.js',
24 'bower_components/perfect-scrollbar/src/perfect-scrollbar.js',
25 'bower_components/angular-perfect-scrollbar/src/angular-perfect-scrollbar.js',
26 'bower_components/angular-mocks/angular-mocks.js',
27 'bower_components/angular-resource/angular-resource.js',
28 'bower_components/angular-sanitize/angular-sanitize.js',
29 'bower_components/angular-tooltips/dist/angular-tooltips.min.js',
30 'bower_components/angular-translate/angular-translate.js',
31 'bower_components/angular-translate-loader-static-files/angular-translate-loader-static-files.js',
32 'bower_components/angular-ui-router/release/angular-ui-router.js',
33 'bower_components/angular-uuid4/angular-uuid4.js',
34 'bower_components/bootstrap/dist/js/bootstrap.js',
35 'bower_components/checklist-model/checklist-model.js',
36 'bower_components/angular-clipboard/angular-clipboard.js',
37 'bower_components/angular-resizable/src/angular-resizable.js',
38 'bower_components/angular-ui-notification/src/angular-ui-notification.js',
39 'bower_components/lodash/lodash.js',
40 'bower_components/restangular/dist/restangular.js',
41 'bower_components/jspdf/dist/jspdf.min.js',
42 'app/scripts/utils/**/*.js',
43 'app/scripts/services/**/*.js',
44 'app/scripts/models/**/*.js',
45 'app/scripts/view-models/**/*.js',
46 'app/scripts/filters/**/*.js',
47 'app/scripts/directives/**/*.js',
48 'app/scripts/modules/**/*.js',
49
50 'app/scripts/app.js',
51 'app/languages/**/*.js',
52
53 'app/scripts/templates.js',
54
55
56
57
58
59 //'app/scripts/view-models/dashboard/dashboard-view-model-tests.js',
60
61
62 'app/scripts/**/*-tests.js',
63 //'app/scripts/app.js',
64
65
66 //definition to allow to debug TS tests file in browser
67 {pattern: 'app/scripts/**/*-tests.ts', included: false},
68 {pattern: 'app/scripts/**/*-tests.js.map', included: false},
69
70
71 //definition to allow to debug TS sources files in browser
72 {pattern: 'app/scripts/**/*.ts', included: false},
73 {pattern: 'app/scripts/**/*.js.map', included: false}
74
75 ],
76
77 // list of files to exclude
78 exclude: [
79
80 ],
81
82 junitReporter: {
83 outputFile: 'tests/testOutput.xml',
84 suite: ''
85 },
86
87 //NOTE: This is handled from gruntfile.js
88 coverageReporter : {
89 type : 'html',
90 dir: 'tests/Coverage'
91 },
92 // test results reporter to use
93 // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
94 reporters: [
95 'mocha',//uncomment this line if you need to debug your unit test and print out the 'describe' of the test
96 'junit',
97 'dots',
98 'progress',
99 'coverage'
100 ],
101
102 // web server port
103 port: 9876,
104
105
106 // enable / disable colors in the output (reporters and logs)
107 colors: true,
108
109
110 // level of logging
111 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
112 // logLevel: config.LOG_INFO,
113
114
115 // enable / disable watching file and executing tests whenever any file changes
116 autoWatch: true,
117
118 preprocessors: {
119 '**/*.html': 'html2js',
120 'app/scripts/**/!(*-tests|*Tests|*Test).js': 'coverage'
121 },
122
123 //ngHtml2JsPreprocessor: {
124 // stripPrefix: 'client/'
125 //},
126
127 // Start these browsers, currently available:
128 // - Chrome
129 // - ChromeCanary
130 // - Firefox
131 // - Opera (has to be installed with `npm install karma-opera-launcher`)
132 // - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
133 // - PhantomJS
134 // - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
135
136 //NOTE: This is handled from gruntfile.js
137
138 browsers: ['Chrome'],
139
140
141 // If browser does not capture in given timeout [ms], kill it
142 captureTimeout: 60000,
143
144
145 // Continuous Integration mode
146 // if true, it capture browsers, run tests and exit
147 singleRun: false
148 });
149};