GithubHelp home page GithubHelp logo

promoandroid's Introduction

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

promoandroid's People

Contributors

cah-ericmaxwell avatar ericmaxwell2003 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.