forked from MetaMask/metamask-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.detoxrc.js
More file actions
126 lines (125 loc) · 3.43 KB
/
Copy path.detoxrc.js
File metadata and controls
126 lines (125 loc) · 3.43 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/** @type {Detox.DetoxConfig} */
module.exports = {
artifacts: {
rootDir: "./artifacts",
plugins: {
screenshot: {
shouldTakeAutomaticSnapshots: true,
keepOnlyFailedTestsArtifacts: true,
takeWhen: {
testStart: false,
testDone: false,
},
},
video: {
enabled: true, // Enable video recording
keepOnlyFailedTestsArtifacts: true, // Keep only failed tests' videos
},
},
},
testRunner: {
args: {
$0: 'jest',
config: 'e2e/jest.e2e.config.js',
},
jest: {
setupTimeout: 220000,
},
retries: 1,
},
configurations: {
'ios.sim.apiSpecs': {
device: 'ios.simulator',
app: process.env.CI ? `ios.${process.env.METAMASK_BUILD_TYPE}.release` : 'ios.debug',
testRunner: {
args: {
"$0": "node e2e/api-specs/run-api-spec-tests.js",
},
},
},
'ios.sim.debug': {
device: 'ios.simulator',
app: 'ios.debug',
},
'ios.sim.main.release': {
device: 'ios.simulator',
app: 'ios.main.release',
},
'ios.sim.flask.release': {
device: 'ios.simulator',
app: 'ios.flask.release',
},
'android.emu.debug': {
device: 'android.emulator',
app: 'android.debug',
},
'android.emu.release': {
device: 'android.bitrise.emulator',
app: 'android.release',
},
'android.emu.flask.release': {
device: 'android.bitrise.emulator',
app: 'android.flask.release',
},
},
devices: {
'ios.simulator': {
type: 'ios.simulator',
device: {
type: 'iPhone 15 Pro',
},
},
'android.bitrise.emulator': {
type: 'android.emulator',
device: {
avdName: 'emulator',
},
// to be used by github action runners later on
// bootArgs: '-skin 1080x2340 -memory 4096 -cores 4 -gpu swiftshader_indirect -no-audio -no-boot-anim -partition-size 4096',
// forceAdbInstall: true,
// gpuMode: 'swiftshader_indirect',
},
'android.emulator': {
type: 'android.emulator',
device: {
avdName: 'Pixel_5_Pro_API_34',
},
},
},
apps: {
'ios.debug': {
type: 'ios.app',
binaryPath:
process.env.PREBUILT_IOS_APP_PATH || 'ios/build/Build/Products/Debug-iphonesimulator/MetaMask.app',
build: 'export CONFIGURATION="Debug" && yarn build:ios:main:e2e',
},
'ios.main.release': {
type: 'ios.app',
binaryPath:
'ios/build/Build/Products/Release-iphonesimulator/MetaMask.app',
build: `yarn build:ios:main:e2e`,
},
'ios.flask.release': {
type: 'ios.app',
binaryPath:
'ios/build/Build/Products/Release-iphonesimulator/MetaMask-Flask.app',
build: `yarn build:ios:flask:e2e`,
},
'android.debug': {
type: 'android.apk',
binaryPath: process.env.PREBUILT_ANDROID_APK_PATH || 'android/app/build/outputs/apk/prod/debug/app-prod-debug.apk',
testBinaryPath: process.env.PREBUILT_ANDROID_TEST_APK_PATH,
build: 'yarn start:android:e2e',
},
'android.release': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/prod/release/app-prod-release.apk',
build: `yarn build:android:main:e2e`,
},
'android.flask.release': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/flask/release/app-flask-release.apk',
build: `yarn build:android:flask:e2e`,
},
},
};