ทดสอบแอปใน Android   เป็นส่วนหนึ่งของ Android Jetpack

การทดสอบแอปเป็นส่วนสำคัญของกระบวนการพัฒนาแอป การทดสอบแอปอย่างสม่ำเสมอช่วยยืนยันความถูกต้อง ลักษณะการทำงาน และความสามารถในการใช้งานของแอปก่อนที่จะเผยแพร่ต่อสาธารณะได้

การทดสอบยังมีข้อดีอื่นๆ ดังนี้

  • ความคิดเห็นที่รวดเร็วเกี่ยวกับข้อผิดพลาด
  • การตรวจหาข้อผิดพลาดตั้งแต่เนิ่นๆ ในวงจรการพัฒนา
  • การจัดระเบียบโค้ดที่ปลอดภัยยิ่งขึ้น ซึ่งช่วยให้คุณเพิ่มประสิทธิภาพโค้ดได้โดยไม่ต้องกังวลเกี่ยวกับการถดถอย
  • ความเร็วในการพัฒนาที่มั่นคง ซึ่งช่วยลดหนี้ทางเทคนิค

เอกสารประกอบ

เอกสารประกอบนี้ครอบคลุมแนวทางปฏิบัติแนะนำเกี่ยวกับการทดสอบแอป Android ดังนี้

แหล่งข้อมูลเพิ่มเติม

ดูข้อมูลเพิ่มเติมเกี่ยวกับการทดสอบใน 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