android-testing
android-testing copied to clipboard
Android Testing Codelab
The starter code doesn't work with a new version of Android Studio like Arctic Fox, it seems to update Gradle, and removing the enableUnitTestBinaryResources configuration solved the problem, at least...
fix #174
In step 6 `org.junit.Assert.assertThat` is used while in step 7 `com.google.common.truth.Truth.assertThat` is used. I feel like this is confusing and should be called out?
**Describe the problem** SnackBar is not shown after checkbox of Tasks is checked or unchecked in the TasksFragment fragment. It happens after clicking the Tasks items from the tasklist to...
**Describe the problem** The dyad signature of assertEquals in JUnit is `assertEquals(expected, actual)`. In fact, when the assertion fails, the error message is: ``` Expected :[expected] Actual :[actual] ``` **The...
**Describe the problem** getActiveAndCompletedStats_noCompleted_returnsHundredZero without parenthesis! **In which lesson and step of the codelab can this issue be found?** Advanced Android in Kotlin 05.1: Testing Basics > Steps7 ("Task: writing...
I think we should use `catch` instead of `finally` because `finally` is always executed. Imagine when the `LiveData` value was set, the `Observer.onChanged()` method is triggered and removing the observer...
**Describe the problem** encountered java.lang.RuntimeException: Delegate runner 'org.robolectric.RobolectricTestRunner' for AndroidJUnit4 could not be loaded. **In which lesson and step of the codelab can this issue be found?** Lesson 5.1 step...