Merge pull request #634 from mjanda/master
[dygraphs.git] / auto_tests / karma.conf.js
CommitLineData
8db6393e
DV
1module.exports = function (config) {
2 config.set({
3 basePath: '../',
dc910fce
DV
4 frameworks: [
5 'mocha',
fecbcf34 6 'chai'
dc910fce 7 ],
8db6393e 8 files: [
b0ce973b 9 'dist/dygraph-combined-dev.js',
8ab75052 10 'src/extras/smooth-plotter.js',
e0b6da53 11 'src/extras/synchronizer.js',
efb1577a
DV
12 'auto_tests/data/*.js',
13 'auto_tests/tests/*.js',
8db6393e
DV
14 ],
15 autoWatch: false,
16 singleRun: true,
b0ce973b 17 reporters: ['mocha', 'coverage'], // or 'dots', 'mocha', 'spec'
8db6393e 18 preprocessors: {
b0ce973b 19 'dist/dygraph-combined-dev.js': ['coverage']
8db6393e
DV
20 },
21 coverageReporter: {
ab847f37
DV
22 dir: 'dist/coverage',
23 reporters: [
24 { type: 'html', subdir: 'report-html' },
25 { type: 'lcovonly', subdir: 'report-lcov' },
26 ]
8db6393e
DV
27 },
28 browsers: ['PhantomJS'],
29 plugins: [
30 'karma-mocha',
31 'karma-chai-plugins',
32 'karma-phantomjs-launcher',
33 'karma-coverage',
dc910fce
DV
34 'karma-spec-reporter',
35 'karma-mocha-reporter'
8db6393e
DV
36 ]
37 });
38};