У нас вы можете посмотреть бесплатно Android DB Testing Finale | Room DB Instrumented Testing Explained | Unit Testing - Part 18 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
In this video, we explore how to perform instrumented testing on Room Database in Android. Unlike simple in-memory tests or Robolectric-based simulations, instrumented tests run on a real device or emulator, offering more accurate and realistic test results. We walk through the setup of dependencies, creation of instrumented test classes, and implementation of actual test cases like insert and read, insert multiple entries, and replace existing entries. We also compare and contrast in-memory, Robolectric, and instrumented Room DB testing approaches, highlighting their advantages, use cases, and differences. #AndroidDevelopment #RoomDatabase #InstrumentedTesting #UnitTestingAndroid #AndroidTesting #RoomDB #Jetpack #MobileDevelopment #TestingInAndroid #Robolectric #LiveData #Coroutines Follow me on Twitter: / anilvdeshpande Github link to code base - https://github.com/AnilDeshpande/Unit... Chapters 00:00 - Introduction and focus of the video 00:24 - Switching to Room DB instrumented testing 00:30 - Adding necessary dependencies 01:20 - Difference between test and androidTest folders 01:56 - Creating the instrumented test class 02:33 - Setting up the database and DAO 03:43 - Writing Unit Tests 05:39 - Running instrumented tests 06:01 - Emulator vs JVM execution speed 06:20 - Importance of realistic testing 06:35 - Test results and performance observation 06:51 - Re-running tests and impact on database 07:09 - Summary: Comparison of testing approaches 08:38 - Best use case for each testing method 09:18 - Conclusion and next steps 09:27 - End of video and call to action