-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Got the AppCenter Appium Android test working
- Loading branch information
1 parent
7102720
commit 895d7a2
Showing
6 changed files
with
137 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,3 +64,5 @@ yarn-error.log | |
|
||
# Maven testing | ||
target/ | ||
android/app/src/main/assets/ | ||
android/app/src/main/res |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
mkdir -p ./android/app/src/main/assets | ||
|
||
npx react-native bundle \ | ||
--dev false \ | ||
--platform android \ | ||
--entry-file index.js \ | ||
--bundle-output ./android/app/src/main/assets/index.android.bundle \ | ||
--assets-dest ./android/app/src/main/res | ||
|
||
cd android | ||
./gradlew assembleDebug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
mvn -DskipTests -P prepare-for-upload package | ||
|
||
appcenter test run appium \ | ||
--app "gerard-krupa-u0hs/TrainingApp" \ | ||
--devices "gerard-krupa-u0hs/demo" \ | ||
--app-path ./android/app/build/outputs/apk/debug/app-debug.apk \ | ||
--test-series "master" \ | ||
--locale "en_US" \ | ||
--build-dir target/upload |
This file was deleted.
Oops, something went wrong.
52 changes: 30 additions & 22 deletions
52
src/test/java/AndroidEmulatorTest.java → src/test/java/RemoteAndroidTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters