Write better tests with the new testing guidance

Posted by Jose Alcérreca, Android Developer Relations Engineer

Blue illustration with Android phone 

As apps increase in functionality and complexity, manually testing them to verify behavior becomes tedious, expensive, or impossible. Modern apps, even simple ones, require you to verify an ever-growing list of test points such as UI flows, localization, or database migrations. Having a QA team whose job is to manually verify that the app works is an option, but fixing bugs at that stage is expensive. The sooner you fix a problem in the development process the better.

Automating tests is the best approach to catching bugs early. Automated testing (from now on, testing) is a broad domain and Android offers many tools and libraries that can overlap. For this reason, beginners often find testing challenging.

In response to this feedback, and to accommodate for Compose and new architecture guidelines, we revamped two testing sections on d.android.com:

Training

Firstly, there is the new Testing training, which includes the fundamentals of testing in Android with two new articles: What to test, an opinionated guide for beginners, and a detailed guide on Test doubles.

Faking dependencies in unit tests

Faking dependencies in unit tests


After providing an overview of the theory, the guide focuses on practical examples of the two main types of tests.

Leave a Comment

https://nsttc.ca/community/profile/situs-judi-slot-online-2022/ https://nsttc.ca/community/profile/situs-judi-slot-online-resmi-2022/ https://nsttc.ca/community/profile/link-slot-gacor-hari-ini/ https://nsttc.ca/community/profile/situs-judi-slot-terbaik-dan-terpercaya-2022/ https://nsttc.ca/community/profile/slot-online-yang-sering-kasih-jackpot/ https://lisdpta.org/community/profile/daftar-situs-judi-slot-online-terpercaya/ https://lisdpta.org/community/profile/situs-judi-slot-online/ https://lisdpta.org/community/profile/situs-judi-slot-online-resmi/ https://lisdpta.org/community/profile/situs-judi-slot-online-gampang-menang/ https://lisdpta.org/community/profile/link-slot-gacor-hari-ini/ https://lisdpta.org/community/profile/situs-judi-slot-terbaik-dan-terpercaya-no-1/ https://lisdpta.org/community/profile/slot-online-terpercaya/ https://lisdpta.org/community/profile/situs-slot-gacor-2022/ https://lisdpta.org/community/profile/slot-online-yang-sering-kasih-jackpot/