在 Android 上測試應用程式 Android Jetpack 的一部分。
測試應用程式是應用程式開發流程中不可或缺的一環。藉由持續測試應用程式,您可以在公開發布應用程式前,驗證應用程式的正確性、功能行為和可用性。
測試還有以下優點:
- 針對失敗狀況提供快速意見回饋。
- 在開發週期中及早偵測失敗情形。
- 更安全的程式碼重構,讓您在進行程式碼最佳化時,不必擔心回歸問題。
- 穩定的開發速度,協助您盡量減少技術債。
說明文件
說明文件涵蓋測試 Android 應用程式的最佳做法:
其他資源
如要進一步瞭解如何在 Android 裝置上測試,請參閱下列資源。
範例
- Android 測試範例
- Now In Android 示範應用程式,可使用 Android 測試程式庫。
程式碼研究室
媒體
Headspace's Android reboot increases monthly active users by 15%
In order to launch new features on their Android app, Headspace spent 8 months refactoring their architecture and rewriting in Kotlin. Learn how this reboot helped their business grow.
SmartNews reduces lines of code by 20% and improves team morale with Kotlin
SmartNews helps millions of people discover their world everyday by sharing timely news from a diverse set of news sources.
Twitter increases developer productivity and code reliability with Kotlin
Twitter is one of the most widely used social media platforms where users can see what’s happening in the world at any given moment.
Google Home reduces #1 cause of crashes by 33%
The Google Home app helps set up, manage, and control your Google Home, Google Nest, and Chromecast devices—plus thousands of connected home products like lights, cameras, thermostats, and more.
Duolingo completes migration to Kotlin and reduces its line count by an average of 30%
Duolingo is one of the most popular language learning platforms in the world, and one of the most-downloaded free education apps on Google Play, with more than 200 million downloads.