2b0f41cd35956b48e1147a745fdceabf81584cbd
[releng.git] / utils / test / reporting / pages / test / karma.conf.js
1 // Karma configuration
2 // Generated on 2016-12-19
3
4 module.exports = function(config) {
5   'use strict';
6
7   config.set({
8     // enable / disable watching file and executing tests whenever any file changes
9     autoWatch: true,
10
11     // base path, that will be used to resolve files and exclude
12     basePath: '../',
13
14     // testing framework to use (jasmine/mocha/qunit/...)
15     // as well as any additional frameworks (requirejs/chai/sinon/...)
16     frameworks: [
17       'jasmine'
18     ],
19
20     // list of files / patterns to load in the browser
21     files: [
22       // bower:js
23       'bower_components/jquery/dist/jquery.js',
24       'bower_components/angular/angular.js',
25       'bower_components/bootstrap/dist/js/bootstrap.js',
26       'bower_components/angular-animate/angular-animate.js',
27       'bower_components/jquery-slimscroll/jquery.slimscroll.js',
28       'bower_components/jquery-slimscroll/jquery.slimscroll.min.js',
29       'bower_components/metisMenu/dist/metisMenu.js',
30       'bower_components/chosen/chosen.jquery.js',
31       'bower_components/oclazyload/dist/ocLazyLoad.js',
32       'bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
33       'bower_components/angular-ui-router/release/angular-ui-router.js',
34       'bower_components/angular-resource/angular-resource.js',
35       'bower_components/sifter/sifter.js',
36       'bower_components/microplugin/src/microplugin.js',
37       'bower_components/selectize/dist/js/selectize.js',
38       'bower_components/angular-selectize2/dist/angular-selectize.js',
39       'bower_components/angular-mocks/angular-mocks.js',
40       // endbower
41       'app/scripts/**/*.js',
42       'test/mock/**/*.js',
43       'test/spec/**/*.js'
44     ],
45
46     // list of files / patterns to exclude
47     exclude: [
48     ],
49
50     // web server port
51     port: 8080,
52
53     // Start these browsers, currently available:
54     // - Chrome
55     // - ChromeCanary
56     // - Firefox
57     // - Opera
58     // - Safari (only Mac)
59     // - PhantomJS
60     // - IE (only Windows)
61     browsers: [
62       'PhantomJS'
63     ],
64
65     // Which plugins to enable
66     plugins: [
67       'karma-phantomjs-launcher',
68       'karma-jasmine'
69     ],
70
71     // Continuous Integration mode
72     // if true, it capture browsers, run tests and exit
73     singleRun: false,
74
75     colors: true,
76
77     // level of logging
78     // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
79     logLevel: config.LOG_INFO,
80
81     // Uncomment the following lines if you are using grunt's server to run the tests
82     // proxies: {
83     //   '/': 'http://localhost:9000/'
84     // },
85     // URL root prevent conflicts with the site root
86     // urlRoot: '_karma_'
87   });
88 };