3 ms·
And actual tests for the Android app! It's a rarity, and especially annoying since the "sample" apps that Google provides pretends that testing doesn't exist.
by swanson 10y ago
And actual tests for the Android app! It's a rarity, and especially annoying since the "sample" apps that Google provides pretends that testing doesn't exist.
- mathiasjakobsen 10y agoAgreed! But some great companies has been Open Source'ing their Android applications for a while. I.e. DuckDuckGo's app (https://github.com/duckduckgo/android https://github.com/duckduckgo/android) and the Forcastie weather app (https://github.com/martykan/forecastie https://github.com/martykan/forecastie). They are great references!
- V-2 10y agoI quickly looked up DuckDuckGo, and - unlike this one - boy is it spaghetti: https://github.com/duckduckgo/android/blob/master/src/com/duckduckgo/mobile/android/activity/DuckDuckGo.java https://github.com/duckduckgo/android/blob/master/src/com/du... Yes I've seen worse, but this most certainly isn't a great example of how to structure an Android app, not to mention the overall untidiness (commented out lines, messed up indentations etc.)
- flukus 10y agoUnit tests or integration tests? It may be better now, but android used to be a real pain to unit test, so much important functionality was baked into the Activity base class that was hard to substitute.
- V-2 10y agoThey seem to favour unit tests over integration tests, which is achieved by abstracting the layout logic away from Activities and into view models that can be unit tested with no fuss.