2014-11-25 02:44:50 +00:00
|
|
|
var _ = require('lodash'),
|
|
|
|
config = require('./config');
|
|
|
|
|
|
|
|
module.exports = function(karma) {
|
2014-11-25 03:31:20 +00:00
|
|
|
var globs = _.flatten([config.globs.js, config.globs.spec]);
|
2014-11-25 02:44:50 +00:00
|
|
|
|
|
|
|
karma.set({
|
|
|
|
frameworks: ['browserify', 'jasmine'],
|
|
|
|
files: globs,
|
|
|
|
preprocessors: _(globs)
|
|
|
|
.zipObject()
|
|
|
|
.mapValues(_.constant(['browserify']))
|
|
|
|
.valueOf(),
|
|
|
|
reporters: ['progress', 'notify'],
|
|
|
|
colors: true,
|
|
|
|
logLevel: karma.LOG_INFO,
|
|
|
|
browsers: ['PhantomJS'],
|
|
|
|
autoWatch: true,
|
|
|
|
singleRun: false,
|
2014-11-30 19:39:56 +00:00
|
|
|
browserify: config.browserify
|
2014-11-25 02:44:50 +00:00
|
|
|
});
|
|
|
|
};
|