forked from PowToon/html-dnd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
61 lines (59 loc) · 1.39 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
/* eslint-env node */
require('dotenv').config({silent: true});
module.exports = function(config) {
// Example set of browsers to run on Sauce Labs
// Check out https://saucelabs.com/platforms for all browser/platform combos
var customLaunchers = {
'SL_Chrome': {
base: 'SauceLabs',
browserName: 'chrome'
},
'SL_FireFox': {
base: 'SauceLabs',
browserName: 'firefox'
},
'SL_Safari': {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.11'
},
'SL_Edge': {
base: 'SauceLabs',
browserName: 'microsoftedge',
platform: 'Windows 10'
},
'SL_InternetExplorer11': {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '11'
},
'SL_InternetExplorer10': {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '9'
}
};
config.set({
basePath: '',
files: [
'dist/**/*.js',
'test/unit/browser/**/*.js'
],
exclude: [],
frameworks: ['mocha', 'chai'],
preprocessors: {
'src/**/*.js': ['coverage']
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
singleRun: true,
sauceLabs: {
testName: 'html-dnd Unit Tests'
},
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
reporters: ['mocha', 'coverage', 'saucelabs']
});
};