blob: 40fb5909a02e282600c9ae3a7b99bdffc3f22a08 [file] [log] [blame]
module.exports = function (config) {
config.set({
basePath: '..',
frameworks: [
'mocha',
'detectBrowsers'
],
files: [
'esprima.js',
'node_modules/lodash/index.js',
'test/dist/fixtures_js.js',
'test/dist/fixtures_json.js',
'test/utils/error-to-object.js',
'test/utils/create-testcases.js',
'test/utils/evaluate-testcase.js',
'test/browser-tests.js'
],
exclude: [],
client: {
mocha: {
reporter: 'html', // change Karma's debug.html to the mocha web reporter
ui: 'bdd'
}
},
reporters: ['dots'], // available reporters: https://npmjs.org/browse/keyword/karma-reporter
port: 9876,
colors: true,
logLevel: config.LOG_WARN, // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
autoWatch: true,
singleRun: false,
detectBrowsers: {
enabled: true,
usePhantomJS: false
},
plugins: [
'karma-mocha',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-ie-launcher',
'karma-safari-launcher',
'karma-detect-browsers'
]
});
}