r/androiddev • • 1h ago

Apps automation tool

Hey all, I've been working on an android test automation tool for the past year and I finally released it. Started as a hobby project, but results turned out quite nice. And its open source.

I tested it a lot on various apps and some devices/emulators, but that’s still probably nothing compared to the numbers used on a daily basis in the industry. Anyway, maybe someone will find usage in that tool or find a bug or suggest some feature. I would be very grateful.

What you can use it for

- UI flows in Jetpack Compose and View-based apps

- Mocking your API from the test or calling your backend to set up data or authorize

- Permission dialogs, crashes, notifications and real FCM pushes, deep links, app updates

- A trace for every failed test (steps, screenshots, network) and a live inspector that suggests locators and let you inspect Network

What I focused on

- No sleeps and no flaky waits: a small daemon on the device streams every UI change to the test, so actions wait until an element is visible, enabled and no longer moving, and assertions pass the moment the UI matches.

- One connection per run instead of a server round trip per action

Limitations

- Tests are TypeScript, not Kotlin

- It sees what the accessibility tree sees: Compose and Views are well tested, but WebView, Flutter and games aren't yet

- Early 0.x, so the API may still change

For more info visit docs: https://tetrip.dev

0 Upvotes

2 comments sorted by

1

u/tadfisher 1h ago

There are a lot of these projects posted here. What separates your solution from all the rest?

Is your project interesting at all for native app developers? Should they choose your project instead of Compose UI testing and Espresso?

1

u/politeducks 1h ago

Most tools poll and use http for every action and my project stream every change over one persistent connection. Espresso and Compose are good for tests of screens and components, but this one offer more end-to-end approach for full flows like pushes or API testing, mocks or app udates.