Issue
I have Jenkins job that gets the source code out of GitHub and creates release APK. I would like to include in this job the creation of androidTest.apk, so I would upload it together with the release APK to test Environment like Google Test Lab and run Espresso tests. I have managed to run gradlew assembleDebugAndroidTest, but first it is Debug and not release and second it didn't have my latest test, only old test.
Solution
How to create Espresso androidTest.apk out side of Android Studio environment?
Navigate to your project directory and execute this in terminal:
./gradlew assembleAndroidTest
This will create instrumented debug apk.
To run instrumented tests perform:
./gradlew connectedDebugAndroidTest
or
./gradlew connectedCheck
Answered By - azizbekian
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.