2015-03-31 12:17:15 +00:00
|
|
|
'use strict';
|
|
|
|
|
2015-10-05 13:08:49 +00:00
|
|
|
var path = require('path');
|
|
|
|
|
|
|
|
var basePath = '../../';
|
|
|
|
|
|
|
|
var absoluteBasePath = path.resolve(path.join(__dirname, basePath));
|
|
|
|
|
|
|
|
|
2014-03-11 14:54:36 +00:00
|
|
|
module.exports = function(karma) {
|
|
|
|
karma.set({
|
|
|
|
|
2015-10-05 13:08:49 +00:00
|
|
|
basePath: basePath,
|
2014-03-11 14:54:36 +00:00
|
|
|
|
2015-10-09 23:35:41 +00:00
|
|
|
frameworks: [
|
|
|
|
'browserify',
|
|
|
|
'mocha',
|
|
|
|
'chai',
|
|
|
|
'sinon-chai'
|
|
|
|
],
|
2014-03-11 14:54:36 +00:00
|
|
|
|
|
|
|
files: [
|
2015-10-09 23:35:41 +00:00
|
|
|
'test/**/*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
|
|
|
preprocessors: {
|
2016-05-03 14:23:31 +00:00
|
|
|
'test/**/*Spec.js': [ 'browserify', 'env' ]
|
2014-03-11 14:54:36 +00:00
|
|
|
},
|
|
|
|
|
2015-10-09 23:35:41 +00:00
|
|
|
reporters: [ 'dots' ],
|
|
|
|
|
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-10-05 13:08:49 +00:00
|
|
|
paths: [ absoluteBasePath ],
|
2015-03-31 12:17:15 +00:00
|
|
|
transform: [ [ 'stringify', { global: true, extensions: [ '.bpmn', '.xml', '.css' ] } ] ]
|
2014-03-11 14:54:36 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|