2015-03-31 14:17:15 +02:00
|
|
|
'use strict';
|
|
|
|
|
2015-10-05 15:08:49 +02:00
|
|
|
var path = require('path');
|
|
|
|
|
|
|
|
var basePath = '../../';
|
|
|
|
|
|
|
|
var absoluteBasePath = path.resolve(path.join(__dirname, basePath));
|
|
|
|
|
|
|
|
|
2014-03-11 15:54:36 +01:00
|
|
|
module.exports = function(karma) {
|
|
|
|
karma.set({
|
|
|
|
|
2015-10-05 15:08:49 +02:00
|
|
|
basePath: basePath,
|
2014-03-11 15:54:36 +01:00
|
|
|
|
2015-10-10 01:35:41 +02:00
|
|
|
frameworks: [
|
|
|
|
'browserify',
|
|
|
|
'mocha',
|
|
|
|
'chai',
|
|
|
|
'sinon-chai'
|
|
|
|
],
|
2014-03-11 15:54:36 +01:00
|
|
|
|
|
|
|
files: [
|
2015-10-10 01:35:41 +02:00
|
|
|
'test/**/*Spec.js'
|
2014-03-11 15:54:36 +01:00
|
|
|
],
|
2014-04-30 01:57:54 +02:00
|
|
|
|
2014-03-11 15:54:36 +01:00
|
|
|
preprocessors: {
|
2016-05-03 16:23:31 +02:00
|
|
|
'test/**/*Spec.js': [ 'browserify', 'env' ]
|
2014-03-11 15:54:36 +01:00
|
|
|
},
|
|
|
|
|
2016-06-07 10:25:00 +02:00
|
|
|
reporters: [ 'spec' ],
|
2015-10-10 01:35:41 +02:00
|
|
|
|
2014-04-04 18:48:37 +02:00
|
|
|
browsers: [ 'PhantomJS' ],
|
2014-03-11 15:54:36 +01:00
|
|
|
|
2014-09-25 09:54:40 +02:00
|
|
|
browserNoActivityTimeout: 30000,
|
2014-07-17 09:02:40 +02:00
|
|
|
|
2014-03-11 15:54:36 +01:00
|
|
|
singleRun: false,
|
|
|
|
autoWatch: true,
|
|
|
|
|
|
|
|
// browserify configuration
|
|
|
|
browserify: {
|
|
|
|
debug: true,
|
2015-10-05 15:08:49 +02:00
|
|
|
paths: [ absoluteBasePath ],
|
2015-03-31 14:17:15 +02:00
|
|
|
transform: [ [ 'stringify', { global: true, extensions: [ '.bpmn', '.xml', '.css' ] } ] ]
|
2014-03-11 15:54:36 +01:00
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|