Evan Chen·May 28, 2022Android TDD Part 13 — Summary of testingLet’s summarize the test on Android. Android tests include :
InLevel Up CodingbyEvan Chen·May 25, 2022Using LocalDate, LocalTime, LocalDateTime with Java 8 in AndroidDealing with Date and time in android, you might use Date(java.util.Date) or Calendar(java.util.Calendar).Now you have a better option…
Evan Chen·May 19, 2022Kotlin extensionYou can extend a class with a new function without modifying that class.
Evan Chen·Aug 17, 2020Android TDD Part 12 — Set test environment variables from GradleIn this article, we'll introduce setting a test environment variable from Gradle.
Evan Chen·Aug 13, 2020Android TDD Part 11 — Use custom view to improve testabilityYou can create a custom view by combining views. For example, this is a number selector, which put a “-” button, “+” button, and Textview…
Evan Chen·Aug 8, 2020Android TDD Part 10— RobolectricWe already know running UI and Instrumented tests on devices are slow. There is another way to verify interaction with Android Framework…
Evan Chen·Jul 30, 2020Android TDD Part 9— UI Test: EspressoRunning UI tests take more time than unit tests, but we still need it. Espresso is an Android UI test framework. you can get a view by id…
Evan Chen·Jul 25, 2020Android TDD Part 8— Instrumented TestsMock every android framework may not be a good idea because we don’t know if the app can run on real devices. In the previous sample, we…
Evan Chen·Jul 23, 2020Android TDD Part 7— Mock android frameworkAs we mentioned before, if tested object interacts with the Android framework, this test is an Instrumented test which means needs to be…
Evan Chen·Jul 17, 2020Android TDD Part 6— First Android unit testNow, we are going to test on Android. There are three types of tests on Android: