]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/web/js/ui/default/staff/test/karma.conf.js
531ac85adcf6c2d73f59b5a509a6127b240c481a
[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       'admin/**/*.js',
35       'test/unit/egIDL.js', // order matters for some of these
36       'test/unit/egOrg.js', 
37       'test/unit/**/*.js'
38     ],
39
40     // test results reporter to use
41     // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
42     reporters: ['spec'],  // detailed report
43     //reporters: ['progress'], // summary report
44
45     // enable / disable colors in the output (reporters and logs)
46     colors: true,
47
48     // enable / disable watching file and executing tests whenever any file changes
49     autoWatch : false,
50
51     frameworks: ['jasmine'],
52
53     browsers: ['PhantomJS'],
54
55     // web server port
56     port: 9876,
57
58     /*
59     coverageReporter: {
60       type : 'html',
61       dir : 'coverage/',
62     },
63
64     preprocessors: {
65       '../src/*.js': ['coverage']
66     },
67     */
68
69     // If browser does not capture in given timeout [ms], kill it
70     captureTimeout: 60000,
71
72     // Continuous Integration mode
73     // if true, it capture browsers, run tests and exit
74     singleRun: true
75 })}