تست برنامه ها در Android بخشی از Android Jetpack .

آزمایش برنامه شما بخشی جدایی ناپذیر از فرآیند توسعه برنامه است. با اجرای مداوم آزمایش‌ها بر روی برنامه خود، می‌توانید صحت، رفتار عملکردی و قابلیت استفاده برنامه خود را قبل از انتشار عمومی تأیید کنید.

آزمایش همچنین مزایای زیر را ارائه می دهد:

  • بازخورد سریع در مورد شکست.
  • تشخیص زودهنگام شکست در چرخه توسعه
  • Refactoring کد ایمن تر ، به شما امکان می دهد بدون نگرانی در مورد رگرسیون، کد را بهینه کنید.
  • سرعت توسعه پایدار ، به شما کمک می کند بدهی فنی را به حداقل برسانید.

مستندات

این اسناد بهترین روش‌های آزمایش برنامه‌های Android را پوشش می‌دهد:

منابع اضافی

برای اطلاعات بیشتر در مورد تست در اندروید، به منابع زیر مراجعه کنید.

نمونه ها

Codelabs

رسانه ها

This is part 2 of the Testing at scale series of articles where we asked industry experts to share their testing strategies. In this article, Ryan Harter, Staff Engineer at Dropbox, shares how the shape of Dropbox’s testing pyramid changed over time,

This is part of the Testing at scale series of articles where we asked industry experts to share their testing strategies. In this article, Ken Yee, Senior Engineer at Netflix, tells us about the challenges of testing a playback app at a massive

We’re excited to announce the new “Testing at scale” blog series! In these posts, industry experts working on different apps share their testing strategies, tips, and obstacles found along the way. This series complements the new Testing Strategies

You can test a ViewModel by simply creating an instance using its constructor in your test code. However, this approach has limitations — there is no straightforward way to: With ViewModelScenario, these are now easy to test, helping you catch errors