1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
react-native-pushy/Example/testHotUpdate/.detoxrc.js

87 lines
2.2 KiB
JavaScript
Raw Normal View History

2023-03-15 23:27:25 +08:00
/** @type {Detox.DetoxConfig} */
module.exports = {
testRunner: {
args: {
2023-03-31 21:35:25 +08:00
$0: 'jest',
2023-03-15 23:27:25 +08:00
config: 'e2e/jest.config.js',
},
2023-03-31 21:35:25 +08:00
jest: {
setupTimeout: 120000,
2023-03-15 23:27:25 +08:00
},
},
apps: {
2023-03-31 21:35:25 +08:00
'ios.debug': {
type: 'ios.app',
2023-04-02 12:51:43 +08:00
binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/AwesomeProject.app',
2023-03-31 21:35:25 +08:00
build:
2023-04-02 12:51:43 +08:00
'xcodebuild -workspace ios/AwesomeProject.xcworkspace -scheme AwesomeProject -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build',
2023-03-31 21:35:25 +08:00
},
2023-03-15 23:27:25 +08:00
'ios.release': {
type: 'ios.app',
binaryPath:
2023-04-02 12:51:43 +08:00
'ios/build/Build/Products/Release-iphonesimulator/AwesomeProject.app',
2023-03-16 21:45:04 +08:00
build:
2023-04-02 12:51:43 +08:00
'xcodebuild -workspace ios/AwesomeProject.xcworkspace -scheme AwesomeProject -configuration Release -sdk iphonesimulator -derivedDataPath ios/build',
2023-03-18 14:43:17 +08:00
},
2023-03-31 21:35:25 +08:00
'android.debug': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/debug/app-debug.apk',
build:
'cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug',
reversePorts: [8081],
2023-03-18 14:43:17 +08:00
},
2023-03-15 23:27:25 +08:00
'android.release': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/release/app-release.apk',
2023-03-16 21:45:04 +08:00
build:
2023-03-31 21:35:25 +08:00
'cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release',
2023-03-15 23:27:25 +08:00
},
},
devices: {
simulator: {
type: 'ios.simulator',
device: {
type: 'iPhone 14',
},
},
2023-03-31 21:35:25 +08:00
attached: {
type: 'android.attached',
2023-03-15 23:27:25 +08:00
device: {
2023-03-31 21:35:25 +08:00
adbName: '.*',
2023-03-15 23:27:25 +08:00
},
},
2023-03-31 21:35:25 +08:00
emulator: {
type: 'android.emulator',
2023-03-15 23:27:25 +08:00
device: {
2023-03-31 21:35:25 +08:00
avdName: 'Pixel_3a_API_33_arm64-v8a',
2023-03-15 23:27:25 +08:00
},
},
},
configurations: {
2023-03-31 21:35:25 +08:00
'ios.sim.debug': {
device: 'simulator',
app: 'ios.debug',
},
2023-03-15 23:27:25 +08:00
'ios.sim.release': {
device: 'simulator',
app: 'ios.release',
},
2023-03-31 21:35:25 +08:00
'android.att.debug': {
device: 'attached',
app: 'android.debug',
2023-03-15 23:27:25 +08:00
},
2023-03-31 21:35:25 +08:00
'android.att.release': {
device: 'attached',
app: 'android.release',
2023-03-15 23:27:25 +08:00
},
'android.emu.debug': {
device: 'emulator',
app: 'android.debug',
},
'android.emu.release': {
device: 'emulator',
app: 'android.release',
},
},
};