test scripts

This commit is contained in:
Anant Bhasin 2021-05-29 15:56:36 +05:30
parent 4010b52c3c
commit 76fad38cb1
2 changed files with 3 additions and 6 deletions

View File

@ -151,7 +151,6 @@ android {
missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative60" // See note below!
}
resValue "string", "rn_config_reader_custom_package", "chat.rocket.reactnative"
testBuildType System.getProperty('testBuildType', 'release') // This will later be used to control the test apk build type
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
@ -235,8 +234,6 @@ android {
}
}
testBuildType "release"
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
@ -263,8 +260,6 @@ android {
}
}
testBuildType "debug"
dependencies {
addUnimodulesDependencies()
implementation project(':watermelondb')

View File

@ -16,7 +16,9 @@
"precommit": "eslint . && jest",
"generate-source-maps-ios": "react-native bundle --platform ios --dev false --entry-file index.js --bundle-output ios-release.bundle --sourcemap-output ios-release.bundle.map",
"generate-source-maps-android": "bugsnag-sourcemaps",
"postinstall": "patch-package && jetify"
"postinstall": "patch-package && jetify",
"detoxAD": "cd android && ./gradlew assembleExperimentalPlayDebugAndroidTest && cd .. && detox test -c android.experimental.play.emu.debug",
"detoxAR": "cd android && ./gradlew assembleExperimentalPlayReleaseAndroidTest && cd .. && detox test -c android.experimental.play.emu.release"
},
"husky": {
"hooks": {