Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Clean Android Code for Unit Testing

Clean Android Code for Unit Testing

GDG Kaohsiung 2016/07/03

York Wu

July 03, 2016
Tweet

More Decks by York Wu

Other Decks in Programming

Transcript

  1. Testing Type Type Subtype Tool Integration Tests Components within your

    app only Espresso Cross-app Components UI Automator
  2. TDD 1. new request 2. add tests 3. red to

    green practice: add new request on /ex ex: email/password regular email/password length
  3. Summary 1. testing is used to protect code logic. 2.

    testing is not used to test server API result!! 3. testing needs the testable code. 4. testable code needs good-designed code.
  4. Q&A