-
Notifications
You must be signed in to change notification settings - Fork 22
/
karma.distro.js
43 lines (29 loc) · 973 Bytes
/
karma.distro.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* eslint-env node */
// configures browsers to run test against
// any of [ 'ChromeHeadless', 'Chrome', 'Firefox', 'Safari' ]
var browsers = (process.env.TEST_BROWSERS || 'ChromeHeadless').split(',');
// use puppeteer provided Chrome for testing
process.env.CHROME_BIN = require('puppeteer').executablePath();
var VARIANT = process.env.VARIANT;
var NODE_ENV = process.env.NODE_ENV;
module.exports = function(karma) {
karma.set({
basePath: '.',
frameworks: [
'mocha',
'sinon-chai'
],
files: [
'dist/' + VARIANT + '.' + (NODE_ENV === 'production' ? 'production.min' : 'development') + '.js',
{ pattern: 'test/fixtures/diagram.bpmn', included: false },
{ pattern: 'dist/assets/**/*', included: false },
'test/distro/helper.js',
'test/distro/' + VARIANT + '.js'
],
reporters: [ 'progress' ],
browsers,
browserNoActivityTimeout: 30000,
singleRun: true,
autoWatch: false
});
};