State in Compose:
-
State in an app is any value that can change over time.
-
The Composition is a description of the UI built by Compose when it executes composables. Compose apps call composable functions to transform data into UI.
-
Initial composition is a creation of the UI by Compose when it executes composable functions the first time.
-
Recomposition is the process of running the same composables again to update the tree when their data changes.
-
State hoisting is a pattern of moving state to its caller to make a component stateless.
Writing Automated Tests:
- The difference between local tests and instrumentation tests
- Fundamental best practices for writing automated tests.
- Where to find and place local and instrumentation test classes in an Android project.
- How to create a test method.
- How to create local and instrumentation test classes.
- How to make assertions in local and instrumentation tests.
- How to use test rules.
- How to use ComposeTestRule to launch the app with a test.
- How to interact with composables in an instrumentation test.
- How to run tests.
Reference: https://developer.android.com/courses/android-basics-compose/course