
























Google released a new version of the Google Auth library.
It had a bug that broke Google Login on Android for API 26 and earlier.
This impacted my small but popular Music Player app in Google Play.
It reveals the kind of problem, I have alluded to in end-to-end testing.
The only way to avoid such problems is by end-to-end testing.
However, I find all Android testing frameworks to be terrible.
Most of the frameworks are focused on testing the underlying code.
However, I’m interested in UI interactions to prove the user can accomplish the job.
And that’s how I came across mobile.dev.
Mobile.dev has an excellent open-source framework called Maestro which one can use to write intuitive tests.
You describe how the UI interactions and expectations.
And the framework just verifies that.
Here’s a sample for the test I wrote to prevent my app from breaking in the future.
This snippet describes a basic test that I wrote to assert that Google Drive Folder sharing is always working.
| |
And here’s a simple GitHub Actions code to run all the tests on mobile.dev
| |
Update: As of Jan 1, 2025, mobile.dev is no longer free. One can, however, run Maestro on GitHub Actions instead using Android Emulator Runner directly.
maestro CLI locally against a connected device/emulator.此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。