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

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

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

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

مستندات

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

منابع اضافی

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

نمونه ها

Codelabs

رسانه ها

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

Keep your UI delightful by testing it! Previews allow quickly verifying components during development, which can be automated with the preview screenshot testing Gradle plugin to create visual regression tests. Behavior tests can use

We work closely with many teams and one thing they all have in common is a justified growing focus on automated testing. More features, more form factors, and more supported Android releases make tests increasingly important. These guides don’t focus

Compared to phone apps, developing high quality health and fitness experience for Wear — and especially performing manual QA — can be a bit tricky. Capabilities vary between devices, and running (or swimming!) over and over to test a user journey is