]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/js/ui/default/staff/test/karma.conf.js
LP#1701001: carve out a reusable patron search service
[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       // load app scripts
50       'app.js',
51       'circ/**/*.js',
52       'cat/**/*.js',
53       'admin/**/*.js',
54       'test/unit/egIDL.js', // order matters for some of these
55       'test/unit/egOrg.js', 
56       'test/unit/**/*.js'
57     ],
58
59     // test results reporter to use
60     // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
61     reporters: ['spec'],  // detailed report
62     //reporters: ['progress'], // summary report
63
64     // enable / disable colors in the output (reporters and logs)
65     colors: true,
66
67     // enable / disable watching file and executing tests whenever any file changes
68     autoWatch : false,
69
70     frameworks: ['jasmine'],
71
72     browsers: ['PhantomJS'],
73
74     // web server port
75     port: 9876,
76
77     /*
78     coverageReporter: {
79       type : 'html',
80       dir : 'coverage/',
81     },
82
83     preprocessors: {
84       '../src/*.js': ['coverage']
85     },
86     */
87
88     // If browser does not capture in given timeout [ms], kill it
89     captureTimeout: 60000,
90
91     // Continuous Integration mode
92     // if true, it capture browsers, run tests and exit
93     singleRun: true
94 })}