blob: 4e28fc62d3aa4912fe5b3b728a43cee5439b38fb [file] [log] [blame]
Simon Hunt449630f2014-12-09 11:40:00 -08001// Karma configuration
Simon Hunt449630f2014-12-09 11:40:00 -08002
3module.exports = function(config) {
4 config.set({
5
6 // base path that will be used to resolve all patterns (eg. files, exclude)
7 basePath: '',
8
9
10 // frameworks to use
11 // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
12 frameworks: ['jasmine'],
13
14
15 // list of files / patterns to load in the browser
16 files: [
Simon Huntf3069722014-12-16 18:15:37 -080017 // library code...
18 '../tp/angular.js',
19 '../tp/angular-mocks.js',
20 '../tp/d3.js',
21 '../tp/topojson.v1.min.js',
22 '../tp/jquery-2.1.1.min.js',
23
24 // production code...
Simon Huntdc6362a2014-12-18 19:55:23 -080025 // make sure modules are defined first...
Simon Huntf3069722014-12-16 18:15:37 -080026 '../app/onos.js',
Simon Huntdc6362a2014-12-18 19:55:23 -080027 '../app/fw/util/util.js',
28 // now load services etc. that augment the modules
29 '../app/**/*.js',
Simon Huntf3069722014-12-16 18:15:37 -080030
31 // unit test code...
Simon Huntdc6362a2014-12-18 19:55:23 -080032 'app/*-spec.js',
33 'app/**/*-spec.js'
Simon Hunt449630f2014-12-09 11:40:00 -080034 ],
35
36
37 // list of files to exclude
38 exclude: [
39 ],
40
41
42 // preprocess matching files before serving them to the browser
43 // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
44 preprocessors: {
45 },
46
47
48 // test results reporter to use
49 // possible values: 'dots', 'progress'
50 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
51 reporters: ['progress'],
52
53
54 // web server port
55 port: 9876,
56
57
58 // enable / disable colors in the output (reporters and logs)
59 colors: true,
60
61
62 // level of logging
63 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
64 logLevel: config.LOG_INFO,
65
66
67 // enable / disable watching file and executing tests whenever any file changes
68 autoWatch: true,
69
70
71 // start these browsers
72 // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
73 browsers: ['Chrome'],
74
75
76 // Continuous Integration mode
77 // if true, Karma captures browsers, runs the tests and exits
78 singleRun: false
79 });
80};