Skip to content

ericmaxwell2003/PromoAndroid

Repository files navigation

Run Unit Tests and Build APK File

Create and startup an emulator for a Pixel 2 w/ API Level 26. (This must happen before running connectedAndroidTests).

Please run the tests with the pixel2 emulator in Portrait mode. I have not written tests that account for landscape mode and therefore some views may be scrolled off screen and fail the test. In a production app, I would spend a lot more time cross testing across various device sizes and orientations.

Tests aside, this app should work fairly well on different physical devices and orientations.

Once you have your emulator up and running, you should be able to run the following:

./gradlew clean test connectedAndroidTest build

Expected Results

  • Unit Tests will be run.
  • Instrumentation tests, including Esspresso UI Driver tests, will run.
  • APK will be built and placed into:
./app/build/outputs/apk/app-debug.apk

Screenshots

Promotion List Example Promotion Detail Example Initial Offline Screen Example

Nexus 9 Landscape Example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages