Skip to content

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

License

Notifications You must be signed in to change notification settings

sergio-sastre/AndroidUiTestingUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d7501e8 · Feb 19, 2025
Sep 25, 2022
Nov 17, 2024
Jan 16, 2024
Nov 17, 2024
Jan 16, 2024
Nov 17, 2024
Nov 17, 2024
Nov 17, 2024
Nov 17, 2024
Nov 17, 2024
Nov 17, 2024
Nov 17, 2024
Feb 11, 2022
Feb 6, 2022
Feb 19, 2025
Jan 16, 2024
Sep 8, 2024
Feb 4, 2022
Feb 4, 2022
Jan 7, 2024
Dec 6, 2023

Repository files navigation


Note

AndroidUiTestingUtils is still in active development and has a long roadmap!
New features are expected to come in May 2025.

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. Font size
  3. Orientation
  4. Custom themes
  5. Dark mode / Day-Night mode
  6. Display size

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