mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-08 02:05:14 +08:00
feat: e2e测试
This commit is contained in:
@@ -24,6 +24,18 @@ module.exports = {
|
||||
build:
|
||||
'export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace ios/testHotUpdate.xcworkspace -UseNewBuildSystem=NO -scheme testHotUpdate -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -quiet',
|
||||
},
|
||||
"ios.debug": {
|
||||
"type": "ios.app",
|
||||
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/testHotUpdate.app",
|
||||
"build": "xcodebuild -workspace ios/testHotUpdate.xcworkspace -UseNewBuildSystem=NO -scheme testHotUpdate -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',
|
||||
@@ -44,7 +56,7 @@ module.exports = {
|
||||
headless: Boolean(process.env.CI),
|
||||
gpuMode: process.env.CI ? 'off' : undefined,
|
||||
device: {
|
||||
avdName: 'Pixel_3a_API_33_arm64-v8a',
|
||||
avdName: 'TestingAVD',
|
||||
},
|
||||
utilBinaryPaths: ['./cache/test-butler-app.apk'],
|
||||
},
|
||||
@@ -58,7 +70,7 @@ module.exports = {
|
||||
'genymotion.emulator.name': {
|
||||
type: 'android.genycloud',
|
||||
device: {
|
||||
recipeName: 'Pixel_3a_API_33_arm64-v8a',
|
||||
recipeName: 'TestingAVD',
|
||||
},
|
||||
utilBinaryPaths: ['./cache/test-butler-app.apk'],
|
||||
},
|
||||
|
Reference in New Issue
Block a user