forked from tangrams/tangram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
82 lines (69 loc) · 1.94 KB
/
karma.conf.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*jshint node: true*/
'use strict';
module.exports = function (config) {
var customLaunchers = {
'SL_Firefox': {
base: 'SauceLabs',
platform: 'Windows 2012',
browserName: 'firefox',
version: '34',
firefox_profile: {
'webgl.force-enabled': true,
'webgl.disable': false,
'webgl.msaa-force': true
}
}
};
var browserList = Object.keys(customLaunchers);
browserList.push('Chrome');
config.set({
basePath: '',
frameworks: ['browserify', 'mocha', 'sinon'],
files: [
'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js',
{
pattern : 'test/fixtures/*',
watched : false,
included : false,
served : true
},
'dist/tangram.debug.js',
'test/**/*.js'
],
exclude: [ ],
preprocessors: {
'test/**/*.js' : ['browserify']
},
browserify : {
debug: true,
transform: [['babelify', { presets: ['es2015'] }], 'brfs']
},
plugins: [
'karma-mocha',
'karma-sinon',
'karma-chrome-launcher',
'karma-sauce-launcher',
'karma-mocha-reporter',
'karma-browserify'
],
reporters: ['mocha'],
port: 9876,
colors: true,
sauceLabs: {
testName: 'Tangram test Suite',
recordScreenshots: true,
connectOptions: {
port: 5757,
logfile: 'sauce_connect.log'
}
},
logLevel: config.LOG_INFO,
autoWatch: false,
customLaunchers: customLaunchers,
browsers: browserList,
proxies: {
'/': 'http://localhost:9876/base/dist/'
},
singleRun: false
});
};