https://kotlinlang.org logo
#android
Title
# android
i

Igor Bozin

02/10/2023, 8:11 PM
Is it possible to test views with integration tests (using Robolectric) or do I need to write UI tests? Could I in theory create a Binding for the View and unit test it that way?
😶 1
l

Landry Norris

02/10/2023, 8:32 PM
Integration tests should support views and Compose. The link below has more information on it. https://developer.android.com/training/testing/fundamentals
Unit tests won't support testing views, since you need an actual device/emulator, but integration tests do.
6 Views