In this episode, Donn sits down with fellow Android GDE, Michael Bailey to cover 10 testing strategies to help you get your application under test and to make sure your testing environment is top notch. They start off with the basics and then progress further down the testing rabbit hole eventually covering topics like cloud-based testing labs, hermetic testing and much much more. This episode will help provide you with a blueprint of how to get your Android app under test and get you to a level where you can develop your app with confidence.
The Ten Tips
- Use Espresso for functional/integration testing
- Mock data and API endpoints to keep tests hermetic
- Utilize JUnit JVM Tests and patterns for a fast dev cycle
- Utilize a git branching strategy and utilize pull requests (PR’s) for code reviews
- Use CI to run the tests and provide constant feedback
- Speed up testing and ease of testing with shell helpers and helper classes for testing
- Cloud Testing Services
- Mutation Testing
- Thoughts on code coverage & value based testing
- Don’t let flaky tests linger
Today on Fragmented, we talk to Eyal Lezmy. Eyal works as an Android developer for Genymotion. While working for Genymotion he had to deal with the Android Debug Bridge a whole bunch, so in this episode we dive into the details of ADB, some super slick commands and in general just get a better understanding of this tool we use every single day.
# input some text from your keyboard
adb shell input text "keyboard text"
# download database file
# see http://stackoverflow.com/questions/18471780/android-adb-retrieve-database-using-run-as
adb exec-out run-as package.name cat databases/file > file
# run-as mentioned in episode
adb shell "run-as package.name chmod 666 /data/data/package.name/databases/file"
In this episode Kaushik talks to Kristin of the Big Nerd Ranch. You would think that the Android lifecycle is pretty standard and basic stuff, but as Kristin begins to unpack the nuances of the Android lifecycle, we learn there’s a world of details that’s easy to miss. Listen on, to get an ironclad grip on the Activity lifecycle.
It’s almost a given these days that most phones will have Fingerprint APIs. But how does the hardware actually work? How does the Software work? How does an Android developer make use of these APIs? Ben Oberkfell breaks it down for us in great detail. Listen on!
Donn Felker: Kaushik, I forget: do you have a Nexus 6P or a Pixel?
Kaushik Gopal: I have a Pixel.
DF: Really? Do you like it?
KG: Oh, I love it.
DF: Where’s the fingerprint scanner on that? Is it on the back or the front?
KG: It’s on the back, exactly like the 6P’s.
Continue reading 074: Ben Oberkfell talks Fingerprint API
In this episode, we talk to Android developer Andrew Orobator. He gives us the lowdown on the new feature App Shortcuts that was introduced in Android. We talk about static and dynamic shortcuts, use cases for other shortcuts and how to implement them for your app. We also cover what the feature lacks and things to watch out for, while implementing them. Listen on!
Fragmented also has spanking new music from the super talented Blueprint: you can find out more at email@example.com.
Andrew’s Medium posts
Continue reading 072: App Shortcuts with Andrew Orobator