From 76fad38cb16497a4fcd797ac3066eee84ebedf67 Mon Sep 17 00:00:00 2001 From: Anant Bhasin Date: Sat, 29 May 2021 15:56:36 +0530 Subject: [PATCH] test scripts --- android/app/build.gradle | 5 ----- package.json | 4 +++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 5a0378752..5e03fc30f 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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') diff --git a/package.json b/package.json index 83a233aa2..1786550c5 100644 --- a/package.json +++ b/package.json @@ -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": {