| 1 | module.exports = function (config) { |
| 2 | config.set({ |
| 3 | basePath: '../', |
| 4 | frameworks: [ |
| 5 | 'mocha', |
| 6 | 'chai' |
| 7 | ], |
| 8 | files: [ |
| 9 | 'dist/dygraph-combined-dev.js', |
| 10 | 'src/extras/smooth-plotter.js', |
| 11 | 'auto_tests/**/*.js', |
| 12 | ], |
| 13 | autoWatch: false, |
| 14 | singleRun: true, |
| 15 | reporters: ['mocha', 'coverage'], // or 'dots', 'mocha', 'spec' |
| 16 | preprocessors: { |
| 17 | 'dist/dygraph-combined-dev.js': ['coverage'] |
| 18 | }, |
| 19 | coverageReporter: { |
| 20 | dir: 'dist/coverage', |
| 21 | reporters: [ |
| 22 | { type: 'html', subdir: 'report-html' }, |
| 23 | { type: 'lcovonly', subdir: 'report-lcov' }, |
| 24 | ] |
| 25 | }, |
| 26 | browsers: ['PhantomJS'], |
| 27 | plugins: [ |
| 28 | 'karma-mocha', |
| 29 | 'karma-chai-plugins', |
| 30 | 'karma-phantomjs-launcher', |
| 31 | 'karma-coverage', |
| 32 | 'karma-spec-reporter', |
| 33 | 'karma-mocha-reporter' |
| 34 | ] |
| 35 | }); |
| 36 | }; |