]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/js/ui/default/staff/test/karma.conf.js
LP#1689608: Minor fixes
[working/Evergreen.git] / Open-ILS / web / js / ui / default / staff / test / karma.conf.js
1 module.exports = function(config){
2     config.set({
3     basePath : '../',
4
5     // config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
6     logLevel: config.LOG_INFO,
7
8     files : [
9       'build/js/angular.min.js',
10       'build/js/angular-route.min.js',
11       'node_modules/angular-mocks/angular-mocks.js', // testing only
12       'node_modules/angular-file-saver/dist/angular-file-saver.bundle.min.js',
13       'node_modules/ng-toast/dist/ngToast.min.js',
14       'node_modules/angular-sanitize/angular-sanitize.min.js',
15       'build/js/ui-bootstrap.js',
16       'build/js/hotkeys.min.js',
17       'build/js/angular-cookies.min.js',
18       /* OpenSRF must be installed first */
19       '/openils/lib/javascript/md5.js',
20       '/openils/lib/javascript/JSON_v1.js',
21       '/openils/lib/javascript/opensrf.js',
22       '/openils/lib/javascript/opensrf_ws.js',
23
24       // mock data for testing only
25       'test/data/IDL2js.js',
26       'test/data/eg_mock.js',
27
28       // service/*.js have to be loaded in order
29       'services/core.js',
30       'services/idl.js',
31       'services/strings.js',
32       'services/event.js',
33       'services/net.js',
34       'services/auth.js',
35       'services/pcrud.js',
36       'services/env.js',
37       'services/org.js',
38       'services/hatch.js',
39       'services/print.js',
40       'services/audio.js',
41       'services/coresvc.js',
42       'services/user.js',
43       'services/startup.js',
44       'services/ui.js',
45       'services/grid.js',
46       'services/op_change.js',
47       'services/patron_search.js',
48       'services/navbar.js', 'services/date.js',
49       'services/user-bucket.js',
50       // load app scripts
51       'app.js',
52       'circ/**/*.js',
53       'cat/**/*.js',
54       'admin/**/*.js',
55       'test/unit/egIDL.js', // order matters for some of these
56       'test/unit/egOrg.js', 
57       'test/unit/**/*.js'
58     ],
59
60     // test results reporter to use
61     // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
62     reporters: ['spec'],  // detailed report
63     //reporters: ['progress'], // summary report
64
65     // enable / disable colors in the output (reporters and logs)
66     colors: true,
67
68     // enable / disable watching file and executing tests whenever any file changes
69     autoWatch : false,
70
71     frameworks: ['jasmine'],
72
73     browsers: ['PhantomJS'],
74
75     // web server port
76     port: 9876,
77
78     /*
79     coverageReporter: {
80       type : 'html',
81       dir : 'coverage/',
82     },
83
84     preprocessors: {
85       '../src/*.js': ['coverage']
86     },
87     */
88
89     // If browser does not capture in given timeout [ms], kill it
90     captureTimeout: 60000,
91
92     // Continuous Integration mode
93     // if true, it capture browsers, run tests and exit
94     singleRun: true
95 })}