[bugfix] gui build faied in yardstick docker build
[yardstick.git] / gui / test / karma.conf.js
1 // Karma configuration
2 // Generated on 2017-05-31
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-strap/dist/angular-strap.js',
27       'bower_components/angular-strap/dist/angular-strap.tpl.js',
28       'bower_components/angular-ui-router/release/angular-ui-router.js',
29       'bower_components/angular-animate/angular-animate.js',
30       'bower_components/angular-breadcrumb/release/angular-breadcrumb.js',
31       'bower_components/angular-wizard/dist/angular-wizard.min.js',
32       'bower_components/angular-resource/angular-resource.js',
33       'bower_components/ng-file-upload/ng-file-upload.js',
34       'bower_components/AngularJS-Toaster/toaster.js',
35       'bower_components/ng-dialog/js/ngDialog.js',
36       'bower_components/angularUtils-pagination/dirPagination.js',
37       'bower_components/ngstorage/ngStorage.js',
38       'bower_components/v-accordion/dist/v-accordion.js',
39       'bower_components/spin.js/spin.js',
40       'bower_components/angular-loading/angular-loading.js',
41       'bower_components/spin.js/spin.js',
42       'bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
43       'bower_components/angular-sanitize/angular-sanitize.js',
44       'bower_components/angular-mocks/angular-mocks.js',
45       // endbower
46       'app/scripts/**/*.js',
47       'test/mock/**/*.js',
48       'test/spec/**/*.js'
49     ],
50
51     // list of files / patterns to exclude
52     exclude: [
53     ],
54
55     // web server port
56     port: 8080,
57
58     // Start these browsers, currently available:
59     // - Chrome
60     // - ChromeCanary
61     // - Firefox
62     // - Opera
63     // - Safari (only Mac)
64     // - PhantomJS
65     // - IE (only Windows)
66     browsers: [
67       'PhantomJS'
68     ],
69
70     // Which plugins to enable
71     plugins: [
72       'karma-phantomjs-launcher',
73       'karma-jasmine'
74     ],
75
76     // Continuous Integration mode
77     // if true, it capture browsers, run tests and exit
78     singleRun: false,
79
80     colors: true,
81
82     // level of logging
83     // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
84     logLevel: config.LOG_INFO,
85
86     // Uncomment the following lines if you are using grunt's server to run the tests
87     // proxies: {
88     //   '/': 'http://localhost:9000/'
89     // },
90     // URL root prevent conflicts with the site root
91     // urlRoot: '_karma_'
92   });
93 };