-
Notifications
You must be signed in to change notification settings - Fork 295
/
web-test-runner-browserstack.config.js
84 lines (80 loc) · 2.12 KB
/
web-test-runner-browserstack.config.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
/* eslint-disable camelcase */
const { legacyPlugin } = require('@web/dev-server-legacy');
const { browserstackLauncher } = require('@web/test-runner-browserstack');
const sharedCapabilities = {
// it's recommended to store user and key as environment variables
'browserstack.user': process.env.BROWSER_STACK_USERNAME,
'browserstack.key': process.env.BROWSER_STACK_ACCESS_KEY,
project: '@lion',
name: '@lion web components',
// if you are running tests in a CI, the build id might be available as an
// environment variable. this is useful for identifying test runs
// this is for example the name for github actions
build: `build ${process.env.GITHUB_RUN_NUMBER || 'unknown'}`,
};
module.exports = {
plugins: [legacyPlugin()],
nodeResolve: true,
sessionStartTimeout: 60000,
concurrency: 1,
coverageConfig: {
report: true,
reportDir: 'coverage',
threshold: {
statements: 90,
branches: 65,
functions: 80,
lines: 90,
},
},
testFramework: {
config: {
timeout: '3000',
},
},
browsers: [
// browserstackLauncher({
// capabilities: {
// ...sharedCapabilities,
// browserName: 'Chrome',
// os: 'Windows',
// os_version: '10',
// },
// }),
// browserstackLauncher({
// capabilities: {
// ...sharedCapabilities,
// browserName: 'Firefox',
// os: 'Windows',
// os_version: '10',
// },
// }),
// browserstackLauncher({
// capabilities: {
// ...sharedCapabilities,
// browserName: 'Firefox',
// browser_version: '60.0',
// os: 'Windows',
// os_version: '10',
// },
// }),
// browserstackLauncher({
// capabilities: {
// ...sharedCapabilities,
// browserName: 'Safari',
// browser_version: '11.1',
// os: 'OS X',
// os_version: 'High Sierra',
// },
// }),
browserstackLauncher({
capabilities: {
...sharedCapabilities,
browserName: 'IE',
browser_version: '11.0',
os: 'Windows',
os_version: '7',
},
}),
],
};