]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/js/ui/default/staff/test/karma.conf.js
LP#1736269: Mark Missing Pieces is non-functional
[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/vendor.bundle.js',
10       'build/js/core.bundle.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       /* OpenSRF must be installed first */
16       '/openils/lib/javascript/md5.js',
17       '/openils/lib/javascript/JSON_v1.js',
18       '/openils/lib/javascript/opensrf.js',
19       '/openils/lib/javascript/opensrf_ws.js',
20
21       // mock data for testing only
22       'test/data/IDL2js.js',
23       'test/data/eg_mock.js',
24
25       // service/*.js have to be loaded in order
26       'services/grid.js',
27       'services/patron_search.js',
28       'services/user-bucket.js',
29
30       // load app scripts
31       'app.js',
32       'circ/**/*.js',
33       'cat/**/*.js',
34       'reporter/**/*.js',
35       'admin/**/*.js',
36       'test/unit/egIDL.js', // order matters for some of these
37       'test/unit/egOrg.js', 
38       'test/unit/**/*.js'
39     ],
40
41     // test results reporter to use
42     // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
43     reporters: ['spec'],  // detailed report
44     //reporters: ['progress'], // summary report
45
46     // enable / disable colors in the output (reporters and logs)
47     colors: true,
48
49     // enable / disable watching file and executing tests whenever any file changes
50     autoWatch : false,
51
52     frameworks: ['jasmine'],
53
54     browsers: ['PhantomJS'],
55
56     // web server port
57     port: 9876,
58
59     /*
60     coverageReporter: {
61       type : 'html',
62       dir : 'coverage/',
63     },
64
65     preprocessors: {
66       '../src/*.js': ['coverage']
67     },
68     */
69
70     // If browser does not capture in given timeout [ms], kill it
71     captureTimeout: 60000,
72
73     // Continuous Integration mode
74     // if true, it capture browsers, run tests and exit
75     singleRun: true
76 })}