1 | // Karma configuration
|
2 | // Generated on Wed Mar 25 2015 21:28:22 GMT+0000 (GMT)
|
3 |
|
4 | module.exports = function (config) {
|
5 | config.set({
|
6 |
|
7 | // base path that will be used to resolve all patterns (eg. files, exclude)
|
8 | basePath: '',
|
9 |
|
10 |
|
11 | // frameworks to use
|
12 | // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
|
13 | frameworks: ['jasmine'],
|
14 |
|
15 |
|
16 | // list of files / patterns to load in the browser
|
17 | files: [
|
18 | 'build/lokijs.min.js',
|
19 | 'spec/helpers/assert-helpers.js',
|
20 | 'spec/generic/*.js',
|
21 | 'spec/browser/*.js'
|
22 | ],
|
23 |
|
24 |
|
25 | // list of files to exclude
|
26 | exclude: [],
|
27 |
|
28 |
|
29 | // preprocess matching files before serving them to the browser
|
30 | // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
31 | preprocessors: {
|
32 | // source files, that you wanna generate coverage for
|
33 | // do not include tests or libraries
|
34 | // (these files will be instrumented by Istanbul)
|
35 | },
|
36 |
|
37 |
|
38 | // test results reporter to use
|
39 | // possible values: 'dots', 'progress'
|
40 | // available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
41 | // coverage reporter generates the coverage
|
42 | reporters: ['dots'],
|
43 |
|
44 |
|
45 | // web server port
|
46 | port: 9876,
|
47 |
|
48 | hostname: '0.0.0.0',
|
49 |
|
50 |
|
51 | // enable / disable colors in the output (reporters and logs)
|
52 | colors: true,
|
53 |
|
54 |
|
55 | // level of logging
|
56 | // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
57 | logLevel: config.LOG_INFO,
|
58 |
|
59 |
|
60 | // enable / disable watching file and executing tests whenever any file changes
|
61 | autoWatch: true,
|
62 |
|
63 |
|
64 | // start these browsers
|
65 | // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
66 | browsers: ['PhantomJS'],
|
67 |
|
68 |
|
69 | // Continuous Integration mode
|
70 | // if true, Karma captures browsers, runs the tests and exits
|
71 | singleRun: false
|
72 | });
|
73 | };
|