2f152dc1a6777381efd931b8a89495fdbd1f7d84
[dygraphs.git] / auto_tests / karma.conf.js
1 module.exports = function (config) {
2 config.set({
3 basePath: '../',
4 frameworks: ['mocha', 'chai', 'chai-as-promised', 'sinon-chai', 'chai-things', 'dirty-chai'],
5 files: [
6 'auto_tests/**.js',
7 'dist/dygraph-combined.dev.js',
8 'src/extras/smooth-plotter.js',
9 ],
10 autoWatch: false,
11 singleRun: true,
12 reporters: ['spec', 'coverage'],
13 preprocessors: {
14 'dist/dygraph-combined.dev.js': ['coverage']
15 },
16 coverageReporter: {
17 type: 'html',
18 dir: 'dist/coverage'
19 },
20 browsers: ['PhantomJS'],
21 plugins: [
22 'karma-mocha',
23 'karma-chai-plugins',
24 'karma-phantomjs-launcher',
25 'karma-coverage',
26 'karma-spec-reporter'
27 ]
28 });
29 };