-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathdetox.config.js
112 lines (112 loc) · 3.16 KB
/
detox.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
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
/** @type {Detox.DetoxConfig} */
module.exports = {
logger: {
level: process.env.CI ? 'debug' : undefined,
},
testRunner: {
args: {
config: 'e2e/jest.config.js',
maxWorkers: process.env.CI ? 2 : undefined,
_: ['e2e']
},
},
artifacts: {
plugins: {
log: process.env.CI ? 'failing' : undefined,
screenshot: process.env.CI ? 'failing' : undefined,
},
},
apps: {
"ios.release": {
"type": "ios.app",
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/example.app",
"build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace ios/example.xcworkspace -UseNewBuildSystem=NO -scheme example -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -quiet",
},
"ios.debug": {
"type": "ios.app",
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/example.app",
"build": "xcodebuild -workspace ios/example.xcworkspace -UseNewBuildSystem=NO -scheme example -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
"start": "scripts/start-rn.sh ios",
},
"android.debug": {
"type": "android.apk",
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
"build": "cd android ; ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug ; cd -",
"start": "scripts/start-rn.sh android",
},
"android.release": {
"type": "android.apk",
"binaryPath": "android/app/build/outputs/apk/release/app-release.apk",
"build": "cd android ; ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release ; cd -",
}
},
devices: {
simulator: {
type: "ios.simulator",
headless: Boolean(process.env.CI),
device: {
type: "iPhone 15 Pro Max",
os: "17.2",
}
},
emulator: {
type: "android.emulator",
headless: Boolean(process.env.CI),
gpuMode: process.env.CI ? 'off' : undefined,
device: {
avdName: "Pixel_API_28"
},
utilBinaryPaths: [
"./cache/test-butler-app.apk"
],
},
"genymotion.emulator.uuid": {
type: "android.genycloud",
device: {
recipeUUID: "a50a71d6-da90-4c67-bdfa-5b602b0bbd15"
},
utilBinaryPaths: [
"./cache/test-butler-app.apk"
],
},
"genymotion.emulator.name": {
type: "android.genycloud",
device: {
recipeName: "Detox_Pixel_API_29"
},
utilBinaryPaths: [
"./cache/test-butler-app.apk"
],
}
},
configurations: {
"ios.sim.release": {
"device": "simulator",
"app": "ios.release"
},
"ios.sim.debug": {
"device": "simulator",
"app": "ios.debug"
},
"ios.manual": {
"type": "ios.manual",
"behavior": {
"launchApp": "manual"
},
"artifacts": false,
"session": {
"autoStart": true,
"server": "ws://localhost:8099",
"sessionId": "com.wix.demo.react.native"
}
},
"android.emu.debug": {
"device": "emulator",
"app": "android.debug"
},
"android.emu.release": {
"device": "emulator",
"app": "android.release"
}
}
};