Kotlin MIT

AndroidUiTestingUtils

A set of TestRules, ActivityScenarios and utils to facilitate UI and screenshot testing under given configurations: FontSizes, Locales...

S

sergio-sastre

Dernière activité 6 août 2026
sergio-sastre/AndroidUiTestingUtils

309

étoiles

15

forks

3

issues ouvertes

androidandroid-instrumentation-testsscreenshot-testingsnapshot-testingtesting-toolsui-testing

Ce README est souvent en anglais.


Android UI testing utils

A set of TestRules, ActivityScenarios and utils to facilitate UI & screenshot testing under certain configurations, independent of the UI testing libraries you are using.


For screenshot testing, it supports:


This library enables you to easily change the following configurations in your UI tests:

  1. Locale (also Pseudolocales en_XA & ar_XB)
    1. App Locale (i.e. per-app language preference)
    2. System Locale
  2. Custom themes
  3. Dark mode / Day-Night mode
  4. Orientation
  5. Font size
  6. Display size
  7. Accessibility (e.g. outline text, bold text, color contrast)
  8. Navigation mode (i.e. gestural/three button) and Status Bar (i.e. Demo Mode) in instrumentation tests

Wondering why verifying our design under these configurations is important? I've got you covered:

🎨 Design a pixel perfect Android app

Documentation

Check out this library's documentation page to see how to use it, including code and ready-to-run examples

Sponsors

Thanks to Screenshotbot for their support!

By using Screenshotbot instead of the in-build record/verify modes provided by most screenshot libraries, you'll give your colleages a better developer experience, since they will not be required to manually record screenshots after every run, instead getting notifications on their Pull Requests.



Android UI testing utils logo modified from one by Freepik - Flaticon

Projets similaires

A sample repo to introduce screenshot testing in Android with different libraries

Kotlinandroidinstrumented-testskotlin
Ssergio-sastre
351 étoiles25

Screenshot testing library for Android

Kotlinandroidgradle-pluginjava
Ppedrovgs
1,2 k étoiles111

Easy on-device screenshot testing for Android.

Kotlinandroidgradle-plugintesting
Ddropbox
292 étoiles19