blob: 5a256385008434b2ad13034a807ecc9b4bab3c2d [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...
25 '../app/onos.js',
26 '../app/fw/lib/*.js',
27 '../app/fw/mast/*.js',
28
29 // unit test code...
30 'fw/lib/*.js'
Simon Hunt449630f2014-12-09 11:40:00 -080031 ],
32
33
34 // list of files to exclude
35 exclude: [
36 ],
37
38
39 // preprocess matching files before serving them to the browser
40 // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
41 preprocessors: {
42 },
43
44
45 // test results reporter to use
46 // possible values: 'dots', 'progress'
47 // available reporters: https://npmjs.org/browse/keyword/karma-reporter
48 reporters: ['progress'],
49
50
51 // web server port
52 port: 9876,
53
54
55 // enable / disable colors in the output (reporters and logs)
56 colors: true,
57
58
59 // level of logging
60 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
61 logLevel: config.LOG_INFO,
62
63
64 // enable / disable watching file and executing tests whenever any file changes
65 autoWatch: true,
66
67
68 // start these browsers
69 // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
70 browsers: ['Chrome'],
71
72
73 // Continuous Integration mode
74 // if true, Karma captures browsers, runs the tests and exits
75 singleRun: false
76 });
77};