1 | // Karma configuration
|
2 | // Generated on Fri Apr 04 2014 22:41:07 GMT-0400 (EDT)
|
3 |
|
4 | module.exports = function (config) {
|
5 | config.set({
|
6 |
|
7 | // base path, that will be used to resolve files and exclude
|
8 | basePath: '',
|
9 |
|
10 |
|
11 | // frameworks to use
|
12 | frameworks: ['mocha'],
|
13 |
|
14 |
|
15 | // list of files / patterns to load in the browser
|
16 | files: [
|
17 | 'node_modules/d3/d3.js',
|
18 | // adds function.bind support to PhantomJs
|
19 | 'node_modules/es5-shim/es5-shim.js',
|
20 | 'node_modules/expect.js/index.js',
|
21 | 'dist/fp.js',
|
22 | 'test/fp-spec.js',
|
23 | 'test/misc-spec.js'
|
24 | ],
|
25 |
|
26 |
|
27 | // list of files to exclude
|
28 | exclude: [
|
29 | ],
|
30 |
|
31 | preprocessors: {
|
32 | '*.js': 'coverage',
|
33 | },
|
34 |
|
35 | // test results reporter to use
|
36 | // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
|
37 | reporters: ['dots', 'coverage'],
|
38 |
|
39 | coverageReporter: {
|
40 | reporters: [{
|
41 | type: 'lcov',
|
42 | dir : 'coverage/'
|
43 | }, {
|
44 | type: 'text-summary'
|
45 | }],
|
46 | },
|
47 |
|
48 | // web server port
|
49 | port: 9876,
|
50 |
|
51 |
|
52 | // enable / disable colors in the output (reporters and logs)
|
53 | colors: true,
|
54 |
|
55 |
|
56 | // level of logging
|
57 | // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
58 | logLevel: config.LOG_INFO,
|
59 |
|
60 |
|
61 | // enable / disable watching file and executing tests whenever any file changes
|
62 | autoWatch: true,
|
63 |
|
64 |
|
65 | // Start these browsers, currently available:
|
66 | // - Chrome
|
67 | // - ChromeCanary
|
68 | // - Firefox
|
69 | // - Opera (has to be installed with `npm install karma-opera-launcher`)
|
70 | // - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
|
71 | // - PhantomJS
|
72 | // - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
|
73 | browsers: ['PhantomJS'],
|
74 |
|
75 |
|
76 | // If browser does not capture in given timeout [ms], kill it
|
77 | captureTimeout: 10000,
|
78 |
|
79 |
|
80 | // Continuous Integration mode
|
81 | // if true, it capture browsers, run tests and exit
|
82 | singleRun: true
|
83 | });
|
84 | };
|