Error Handling and Unit Testing : MVI Compose Weather App

Описание к видео Error Handling and Unit Testing : MVI Compose Weather App

#android #jetpackcompose #weatherapp #kotlin #unittesting
In this video we look at improving error handling techniques for API requests and from our Kotlin flows catch block. To verify the error handling works as expected we also look into improving our existing tests to accommodate these changes, comprising of JUnit, Turbine, Mockk, and Truth.

--------------

⌛️ Timestamps

0:00 Intro
0:21 Create a custom API result wrapper
3:00 Map error response and exceptions to error messages
5:03 Clean up the presentation layer to use the result wrapper
6:45 Improved Demo
6:55 Fix the error on opening the app every time
7:09 Fixed Demo
7:17 Writing Tests
13:43 Outro

--------------
📚 Testing Flows on Android

https://developer.android.com/kotlin/...

📚 Mockk

https://mockk.io/

📚 Turbine

https://github.com/cashapp/turbine

📚 Truth

https://truth.dev/


--------------
Github Repo:
https://github.com/odaridavid/WeatherApp

Twitter:
  / _davidodari  

LinkedIn:
  / david-odari-kiribwa-155613111  

Комментарии

Информация по комментариям в разработке