Skip to content

Commit

Permalink
feat: android e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
limpbrains committed Jan 11, 2024
1 parent a083555 commit f84c928
Show file tree
Hide file tree
Showing 18 changed files with 626 additions and 40 deletions.
8 changes: 7 additions & 1 deletion .detoxrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
const reversePorts = [80, 8080, 9735, 10009, 28334, 28335, 28336, 39388, 43782, 60001];


/** @type {Detox.DetoxConfig} */
module.exports = {
testRunner: {
$0: 'jest',
Expand All @@ -24,12 +28,14 @@ module.exports = {
binaryPath: 'android/app/build/outputs/apk/debug/app-debug.apk',
build:
'cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd .. ',
reversePorts,
},
'android.release': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/release/app-release.apk',
build:
'cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..',
reversePorts,
},
},
devices: {
Expand All @@ -42,7 +48,7 @@ module.exports = {
emulator: {
type: 'android.emulator',
device: {
avdName: 'Pixel_API_29_AOSP',
avdName: 'Pixel_API_31_AOSP',
},
},
},
Expand Down
Loading

0 comments on commit f84c928

Please sign in to comment.