-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf-debug.js
78 lines (76 loc) · 1.5 KB
/
karma.conf-debug.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
module.exports = function(config) {
if(!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY) {
console.error('Make sure the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables are set.');
process.exit(1);
}
const customLaunchers = {
sl_chrome_72_x12: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'macOS 10.12',
version: '72.0'
},
};
config.set({
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
frameworks: [ 'mocha', 'chai' ],
files: [
'test/decisions.ks'
],
plugins: [
'@mocha/karma-sauce-launcher',
'karma-chai',
'karma-mocha',
'karma-webpack',
'karma-mocha-reporter',
],
preprocessors: {
'test/*.ks': [ 'webpack' ]
},
reporters: [ 'mocha', 'saucelabs' ],
webpack: [
{
mode: 'production',
module: {
rules: [
{
test: /\.ks$/,
use: [
{
loader: '@kaoscript/webpack-loader?target=ecma-v6®ister=@kaoscript/target-commons'
}
]
}
]
},
performance: {
hints: false
},
resolve: {
extensions: ['.ks', '.json', '.js']
}
}
],
webpackServer: {
noInfo: true
},
singleRun: true,
autoWatch: false,
logLevel: config.LOG_DEBUG,
colors: true,
port: 9876,
concurrency: 1,
captureTimeout: 300000,
browserNoActivityTimeout: 60000,
sauceLabs: {
testName: '@zokugun/lang',
recordVideo: true,
recordScreenshots: true,
connectOptions: {
port: 5757
},
public: 'public'
}
});
};