blob: d4df6ab65cc97e2e16b25a2662e685f490816cb1 [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)
Simon Hunt5d12dc22015-01-05 16:56:22 -08007 // the path is relative to this (karma.conf.js) file
Simon Hunt449630f2014-12-09 11:40:00 -08008 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: [
Simon Huntf3069722014-12-16 18:15:37 -080018 // library code...
19 '../tp/angular.js',
20 '../tp/angular-mocks.js',
Simon Hunt5d12dc22015-01-05 16:56:22 -080021 '../tp/angular-route.js',
Simon Huntf3069722014-12-16 18:15:37 -080022 '../tp/d3.js',
23 '../tp/topojson.v1.min.js',
24 '../tp/jquery-2.1.1.min.js',
25
26 // production code...
Simon Huntdc6362a2014-12-18 19:55:23 -080027 // make sure modules are defined first...
Simon Huntf3069722014-12-16 18:15:37 -080028 '../app/onos.js',
Simon Huntdc6362a2014-12-18 19:55:23 -080029 '../app/fw/util/util.js',
30 // now load services etc. that augment the modules
31 '../app/**/*.js',
Simon Huntf3069722014-12-16 18:15:37 -080032
33 // unit test code...
Simon Huntdc6362a2014-12-18 19:55:23 -080034 'app/*-spec.js',
35 'app/**/*-spec.js'
Simon Hunt449630f2014-12-09 11:40:00 -080036 ],
37
38
39 // list of files to exclude
40 exclude: [
41 ],
42
43
44 // preprocess matching files before serving them to the browser
45 // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
46 preprocessors: {
47 },
48
49
50 // test results reporter to use
51 // possible values: 'dots', 'progress'
52 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
53 reporters: ['progress'],
54
55
56 // web server port
57 port: 9876,
58
59
60 // enable / disable colors in the output (reporters and logs)
61 colors: true,
62
63
64 // level of logging
65 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
66 logLevel: config.LOG_INFO,
67
68
69 // enable / disable watching file and executing tests whenever any file changes
70 autoWatch: true,
71
72
73 // start these browsers
74 // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
75 browsers: ['Chrome'],
76
77
78 // Continuous Integration mode
79 // if true, Karma captures browsers, runs the tests and exits
80 singleRun: false
81 });
82};