2014-03-11 14:54:36 +00:00
|
|
|
module.exports = function(karma) {
|
|
|
|
karma.set({
|
|
|
|
|
|
|
|
basePath: '../../',
|
|
|
|
|
|
|
|
frameworks: [ 'jasmine', 'browserify' ],
|
|
|
|
|
|
|
|
files: [
|
|
|
|
'test/spec/browser/**/*Spec.js'
|
|
|
|
],
|
|
|
|
|
|
|
|
reporters: [ 'dots' ],
|
|
|
|
|
|
|
|
preprocessors: {
|
|
|
|
'test/spec/browser/**/*Spec.js': [ 'browserify' ]
|
|
|
|
},
|
|
|
|
|
2014-04-04 16:48:37 +00:00
|
|
|
browsers: [ 'PhantomJS' ],
|
2014-03-11 14:54:36 +00:00
|
|
|
|
2014-03-14 16:52:30 +00:00
|
|
|
// fixing slow browserify build
|
2014-04-05 09:36:26 +00:00
|
|
|
browserNoActivityTimeout: 60000,
|
2014-03-14 16:52:30 +00:00
|
|
|
|
2014-03-11 14:54:36 +00:00
|
|
|
singleRun: false,
|
|
|
|
autoWatch: true,
|
|
|
|
|
|
|
|
// browserify configuration
|
|
|
|
browserify: {
|
|
|
|
debug: true,
|
2014-03-13 15:06:30 +00:00
|
|
|
watch: true,
|
2014-03-14 16:52:30 +00:00
|
|
|
transform: [ 'brfs' ]
|
2014-03-11 14:54:36 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|