Dependencies are one of the biggest challenges to getting legacy code into a test harness. Especially dependencies on…
Tests are the safety net that allow you to refactor with confidence. But what if your legacy code doesn’t have any…
“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” — Martin Fowler (1999)
Is it possible to unit test logic that is tied to loading XML resources?
OkHttp3 and PowerMock are both useful tools on Android but using them together can get you into…
Some people regard discipline as a chore. For me, it is a kind of order…
Update (May 1, 2020): This method for mocking BuildConfig values is outdated and should no longer be used. See comments below for an alternate approach using Gradle build flavors.
How can we unit test our custom view attributes to ensure they are properly parsed and applied when the view is created?
Unit testing can be a great way to get started using Kotlin for Android.