add web portal framework for TestAPI
[releng.git] / utils / test / testapi / 3rd_party / static / testapi-ui / assets / lib / angular-confirm-modal / test / karma.conf.js
1 // Karma configuration
2 // Generated on Tue Jul 14 2015 10:10:58 GMT-0400 (Eastern Daylight Time)
3
4 module.exports = function(config) {
5   var configuration = {
6
7     // base path that will be used to resolve all patterns (eg. files, exclude)
8     basePath: '',
9
10
11     // frameworks to use
12     // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
13     frameworks: ['jasmine'],
14
15
16     // list of files / patterns to load in the browser
17     files: [
18       '../node_modules/angular/angular.js',
19       '../node_modules/angular-ui-bootstrap/ui-bootstrap-tpls.min.js',
20       '../node_modules/angular-mocks/angular-mocks.js',
21       '../angular-confirm.js',
22       'unit/**/*Spec.js'
23     ],
24
25
26     // list of files to exclude
27     exclude: [
28     ],
29
30
31     // preprocess matching files before serving them to the browser
32     // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
33     preprocessors: {
34     },
35
36
37     // test results reporter to use
38     // possible values: 'dots', 'progress'
39     // available reporters: https://npmjs.org/browse/keyword/karma-reporter
40     reporters: ['progress'],
41
42
43     // web server port
44     port: 9876,
45
46
47     // enable / disable colors in the output (reporters and logs)
48     colors: true,
49
50
51     // level of logging
52     // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
53     logLevel: config.LOG_INFO,
54
55
56     // enable / disable watching file and executing tests whenever any file changes
57     autoWatch: true,
58
59
60     // start these browsers
61     // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
62     browsers: ['Chrome'],
63
64         customLaunchers: {
65       Chrome_travis_ci: {
66         base: 'Chrome',
67         flags: ['--no-sandbox']
68       }
69     },
70
71     // Continuous Integration mode
72     // if true, Karma captures browsers, runs the tests and exits
73     singleRun: false
74   };
75
76   if(process.env.TRAVIS){
77     configuration.browsers = ['Chrome_travis_ci'];
78   }
79
80   config.set(configuration);
81 }