Evan ChenAndroid TDD Part 13 — Summary of testingLet’s summarize the test on Android. Android tests include :May 28, 2022May 28, 2022
Evan CheninLevel Up CodingUsing 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…May 25, 2022May 25, 2022
Evan ChenKotlin extensionYou can extend a class with a new function without modifying that class.May 19, 2022May 19, 2022
Evan ChenAndroid TDD Part 12 — Set test environment variables from GradleIn this article, we'll introduce setting a test environment variable from Gradle.Aug 17, 2020Aug 17, 2020
Evan ChenAndroid 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…Aug 13, 2020Aug 13, 2020
Evan ChenAndroid 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…Aug 8, 2020Aug 8, 2020
Evan ChenAndroid 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…Jul 30, 2020Jul 30, 2020
Evan ChenAndroid 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…Jul 25, 2020Jul 25, 2020
Evan ChenAndroid 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…Jul 23, 2020Jul 23, 2020
Evan ChenAndroid TDD Part 6— First Android unit testNow, we are going to test on Android. There are three types of tests on Android:Jul 17, 2020Jul 17, 2020