2023-02-04 - FOSDEM 2023 - Brussels
Note: This is a shortened version of How to Test Your Compose UI.
While Compose is easy to adopt, not creating legacy code right at the start of such a journey requires extra planning, awareness, and, most importantly, testing. We’ll have a look at how we can test pure Compose UIs as well as hybrid ones that have Views and composables too.
In this talk, we’ll learn what the semantics tree is, its relation to the composition, how we can manipulate it in composables using the Semantics modifier, how we can implement composables with testability in mind, and how we can test pure Compose, and hybrid UIs.
Check out the slides
Watch this talk
The demo project
Jetpack Compose testing docs
Jetpack Compose testing cheatsheet
Jetpack Compose accessibility docs
Jetpack Compose: Testing
ADB podcast EP 171 - Compose Testing
Jetpack Compose sample projects