Join Slack
Menu
Home
Archive
Is it possible to test views with integration tests (using Robolectric) or do I need to write UI tes...
# 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
Landry Norris
02/10/2023, 8:33 PM
Unit tests won't support testing views, since you need an actual device/emulator, but integration tests do.
8
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by