-
Notifications
You must be signed in to change notification settings - Fork 109
/
.gemini.js
93 lines (82 loc) · 2.26 KB
/
.gemini.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
83
84
85
86
87
88
89
90
91
92
93
global.React = require('react');
const fs = require('fs');
const ALL_BROWSERS = !!process.env.ALL_BROWSERS;
const FILE_REGEXP = /\.gemini.\js?$/;
let sets = fs.readdirSync('./gemini/')
.filter(item => FILE_REGEXP.test(item))
.map(item => item.replace(FILE_REGEXP, ''))
.reduce((result, item) => {
result[item] = {
files: [`gemini/${item}.gemini.js`]
};
return result;
}, {});
let config = {
gridUrl: 'http://ondemand.saucelabs.com/wd/hub',
rootUrl: 'http://localhost:8668',
windowSize: '1024x768',
httpTimeout: 60000,
retry: 3,
sessionsPerBrowser: 3,
suitesPerSession: 150,
browsers: {
chromeWin7: {
desiredCapabilities: {
browserName: 'chrome',
version: '70',
platform: 'Windows 7'
}
}
},
sets,
system: {
debug: false,
exclude: [
'demo/',
'./gemini/screens/',
'./gemini-*/',
'node_modules/',
'./src/'
],
plugins: {
babel7: {
extensions: [".es6", ".es", ".js", ".mjs", '.ts', '.tsx'],
},
'html-reporter/gemini': {
defaultView: 'failed',
path: './gemini-report'
},
optipng: true,
react: {
jsModules: ['./gemini-utils/gemini-main.css'],
port: 8668,
staticRoot: './',
webpackConfig: './gemini/webpack.gemini.config.js'
},
'saucelabs-info': {}
},
projectRoot: './',
tempDir: './gemini/'
},
screenshotsDir: './gemini/screens/'
};
if (ALL_BROWSERS) {
config.system.plugins.react.jsModules.unshift('./src/polyfills.js');
Object.assign(config.browsers, {
ie10Win7: {
desiredCapabilities: {
browserName: 'internet explorer',
version: '10',
platform: 'Windows 7'
}
},
ie11Win81: {
desiredCapabilities: {
browserName: 'internet explorer',
version: '11',
platform: 'Windows 8.1'
}
}
});
}
module.exports = config;