Debug working on local, but not release
This commit is contained in:
parent
1a36e834fd
commit
a3c6b43110
11
.detoxrc.js
11
.detoxrc.js
|
@ -25,14 +25,15 @@ module.exports = {
|
||||||
'android.debug': {
|
'android.debug': {
|
||||||
type: 'android.apk',
|
type: 'android.apk',
|
||||||
binaryPath: 'android/app/build/outputs/apk/experimentalPlay/debug/app-experimental-play-debug.apk',
|
binaryPath: 'android/app/build/outputs/apk/experimentalPlay/debug/app-experimental-play-debug.apk',
|
||||||
build: 'cd android ; ./gradlew assembleExperimentalPlayDebugAndroidTest -DtestBuildType=debug ; cd -',
|
build:
|
||||||
|
'cd android ; ./gradlew assembleExperimentalPlayDebug assembleExperimentalPlayDebugAndroidTest -DtestBuildType=debug ; cd -',
|
||||||
reversePorts: [8081]
|
reversePorts: [8081]
|
||||||
},
|
},
|
||||||
'android.release': {
|
'android.release': {
|
||||||
type: 'android.apk',
|
type: 'android.apk',
|
||||||
binaryPath:
|
binaryPath: 'android/app/build/outputs/apk/experimentalPlay/release/app-experimental-play-release.apk',
|
||||||
'android/app/build/outputs/apk/androidTest/experimentalPlay/release/app-experimental-play-release-androidTest.apk',
|
build:
|
||||||
build: 'cd android ; ./gradlew assembleExperimentalPlayReleaseAndroidTest -DtestBuildType=release ; cd -'
|
'cd android ; ./gradlew assembleExperimentalPlayRelease assembleExperimentalPlayReleaseAndroidTest -DtestBuildType=release ; cd -'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
devices: {
|
devices: {
|
||||||
|
@ -51,7 +52,7 @@ module.exports = {
|
||||||
emulator: {
|
emulator: {
|
||||||
type: 'android.emulator',
|
type: 'android.emulator',
|
||||||
device: {
|
device: {
|
||||||
avdName: 'myavd'
|
avdName: 'Pixel_4_XL_API_31'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class DetoxTest {
|
||||||
@Rule
|
@Rule
|
||||||
// Replace 'MainActivity' with the value of android:name entry in
|
// Replace 'MainActivity' with the value of android:name entry in
|
||||||
// <activity> in AndroidManifest.xml
|
// <activity> in AndroidManifest.xml
|
||||||
public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class, false, false);
|
public ActivityTestRule<chat.rocket.reactnative.MainActivity> mActivityRule = new ActivityTestRule<>(chat.rocket.reactnative.MainActivity.class, false, false);
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void runDetoxTests() {
|
public void runDetoxTests() {
|
||||||
|
|
Loading…
Reference in New Issue