2015-03-31 12:17:15 +00:00
|
|
|
'use strict';
|
|
|
|
|
2014-03-11 14:54:36 +00:00
|
|
|
module.exports = function(karma) {
|
|
|
|
karma.set({
|
|
|
|
|
|
|
|
basePath: '../../',
|
|
|
|
|
2015-07-15 15:22:19 +00:00
|
|
|
frameworks: [ 'browserify',
|
|
|
|
'mocha',
|
|
|
|
'chai',
|
|
|
|
'sinon-chai'],
|
2014-03-11 14:54:36 +00:00
|
|
|
|
|
|
|
files: [
|
2014-08-01 05:16:59 +00:00
|
|
|
'test/spec/**/*Spec.js',
|
|
|
|
'test/integration/**/*Spec.js'
|
2014-03-11 14:54:36 +00:00
|
|
|
],
|
2014-04-29 23:57:54 +00:00
|
|
|
|
2014-03-11 14:54:36 +00:00
|
|
|
reporters: [ 'dots' ],
|
|
|
|
|
|
|
|
preprocessors: {
|
2014-08-01 05:16:59 +00:00
|
|
|
'test/spec/**/*Spec.js': [ 'browserify' ],
|
|
|
|
'test/integration/**/*Spec.js': [ 'browserify' ]
|
2014-03-11 14:54:36 +00:00
|
|
|
},
|
|
|
|
|
2014-04-04 16:48:37 +00:00
|
|
|
browsers: [ 'PhantomJS' ],
|
2014-03-11 14:54:36 +00:00
|
|
|
|
2014-09-25 07:54:40 +00:00
|
|
|
browserNoActivityTimeout: 30000,
|
2014-07-17 07:02:40 +00:00
|
|
|
|
2014-03-11 14:54:36 +00:00
|
|
|
singleRun: false,
|
|
|
|
autoWatch: true,
|
|
|
|
|
|
|
|
// browserify configuration
|
|
|
|
browserify: {
|
|
|
|
debug: true,
|
2015-03-31 12:17:15 +00:00
|
|
|
transform: [ [ 'stringify', { global: true, extensions: [ '.bpmn', '.xml', '.css' ] } ] ]
|
2014-03-11 14:54:36 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|