Android पर ऐप्लिकेशन टेस्ट करना   यह Android Jetpack का हिस्सा है.

ऐप्लिकेशन को टेस्ट करना, ऐप्लिकेशन डेवलप करने की प्रक्रिया का ज़रूरी हिस्सा है. ऐप्लिकेशन को सार्वजनिक तौर पर रिलीज़ करने से पहले, उसके लिए लगातार टेस्ट चलाकर यह देखा जा सकता है कि वह कितना सही है. साथ ही, यह भी देखा जा सकता है कि वह कैसे काम करता है और आसानी से इस्तेमाल किया जा सकता है या नहीं.

टेस्टिंग से ये फ़ायदे भी मिलते हैं:

  • गड़बड़ियों के बारे में तुरंत सुझाव, शिकायत या राय.
  • डेवलपमेंट साइकल में गड़बड़ी का जल्द पता लगाना.
  • सुरक्षित कोड रीफ़ैक्टरिंग, जिसकी मदद से, रिग्रेशन के बारे में चिंता किए बिना कोड को ऑप्टिमाइज़ किया जा सकता है.
  • डेवलपमेंट की स्थिर रफ़्तार, जिससे आपको तकनीकी क़र्ज़ को कम करने में मदद मिलती है.

दस्तावेज़

इस दस्तावेज़ में, Android ऐप्लिकेशन की जांच करने के सबसे सही तरीके बताए गए हैं:

अन्य संसाधन

Android पर टेस्टिंग के बारे में ज़्यादा जानकारी के लिए, यहां दिए गए संसाधन देखें.

सैंपल

कोडलैब

मीडिया

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