Code Quality on Android - A grumpy old man's perspective
summary
OneView enforces build and quality gates with Jenkins, runs static analysis with SonarQube (plus Detekt for Kotlin) and requires heavy unit testing: about 80% of tests are unit tests, integration tests cover flows, and instrumentation tests stay minimal. Unit tests use Mockito and RxJava helpers; view tests use Robolectric to avoid slow emulators. Code uses constructor injection, builders or Toothpick for test doubles. A CI fail on coverage or Sonar rules blocks merges; a fake test once let a bug reach production.
AI-written summary · about
chapters (8)
- 0:00Start
- 4:50Don't let premature optimization replace readability
- 6:54Setup a CICD server
- 8:08Use a static code analizer
- 11:13Code reviews
- 15:23How do we approach testing?
- 16:15Test a single method of a single class
- 30:45A grumpy old man's perspective
related talks
19mEase Software structural quality on Android (en)
45mComputer Says No - Static Analysis and CI in a Kotlin Word
36mAndroid like a (reliable) Rock Star - All About Android Continuous Integration
41mFirst, Do No Harm
26mAndroid CI: 2016 edition
20mUnit testing on Android
21mMastering Code Quality: A Deep Dive into Custom Linting for Android Developers
53mCI for Android Using Jenkins
