Тёмный

Write your first Compose UI test 

Подписаться
Просмотров 40 тыс.
% 601

In this talk, we’ll walk you through writing your very first Compose UI test. We’ll cover finders, assertions, actions, and matchers and take a quick look at the semantics tree.
Resources:
Testing your Compose layout → goo.gle/compose-testing
Semantics in Compose → goo.gle/compose-semantics
Testing cheatsheet → goo.gle/compose-test-sheet
Accessibility in Compose → goo.gle/compose-a11y
Speaker: Jolanda Verhoef
Watch more:
Watch all the Android Dev Summit sessions → goo.gle/ADS-All
Watch all the Modern Android Development track sessions → goo.gle/ADS-MAD
Subscribe to Android Developers → goo.gle/AndroidDevs
#Featured #AndroidDevSummit #Compose

Наука

Опубликовано:

 

24 окт 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@Mindinmatrix
@Mindinmatrix 10 месяцев назад
Thank you for this. Really cool!
@kalidsherefuddin
@kalidsherefuddin Год назад
Thanks
@professorposh4146
@professorposh4146 Год назад
Fantastic! Very clearly explained. Thank you.
@SiamakAshrafi
@SiamakAshrafi Год назад
Hope we can start using JUnit5 at some point ...
@zealscar
@zealscar Год назад
Thanks! Any references for screenshot test would be really helpful. We are migrating our design system to compose and need a way to test the color and styling attributes of our components.
@Virus00000000000001
@Virus00000000000001 Год назад
Is it possible to get a preview when running a test on Desktop JVM? Im on Mac now and I see it appearing in the dock, but there is no windows showing
@youNeverThoughtAboutIt
@youNeverThoughtAboutIt Год назад
it says activity has already set content if I add setContent in a test, just updated all libraries
@user-ww6wq7vt6c
@user-ww6wq7vt6c 10 месяцев назад
How do you test toasts?
@lixoten344
@lixoten344 Год назад
Where is the source to this calculator app?
@khalidhamid7448
@khalidhamid7448 Год назад
How do you stub/mock/provide test double required by DI in compose UI tests
@josealcerreca4841
@josealcerreca4841 Год назад
We have documentation on that for Hilt developer.android.com/training/dependency-injection/hilt-testing
@tgoel1
@tgoel1 3 месяца назад
Is there is github repository of this code, If I want to play with it?
@udaiti6784
@udaiti6784 22 дня назад
How to use performpresskey() to simulate key press like letter 'a'? Anyone please?
@jjhoninatan55sabadi
@jjhoninatan55sabadi Год назад
Still don't know how to test colors
@AndroidDevelopers
@AndroidDevelopers Год назад
Hey there, Jhonatan! You can find more on colors, here 🙂 → goo.gle/3FnOtFX
@adagabranca
@adagabranca 7 месяцев назад
anyone else getting fingerprint must not be null ? :D
@LightDante
@LightDante 10 месяцев назад
Sorry to ask, but why do we need Ui test? Doest it increase our development work and the advantage seems can be replaced by human's tests.
@pqsk
@pqsk 6 месяцев назад
Automation. You can put all of your test cases that can be automated and run repeatedly easily. Some things in the UI are very hard and/or close to impossible to automate. In those cases we have no choice but to manually test
@soclick5163
@soclick5163 Год назад
🤔🤔🤔
@mondoshigua
@mondoshigua 8 месяцев назад
👋🏼🇨🇴🧔🏻👍🏼🤝🏻 Saludos desde Colombia, buena información
@andrevini8099
@andrevini8099 Год назад
Anyone had a problem running ./gradlew test, and the tests failed ? please let me know, I am not getting insights from the bug