Use JUnit 5, MockK, Android coverage, and Kover for Ktor Client Unit Tests
Today I’m going to talk about how to set up and use JUnit 5 and MockK to test the Ktor Client. I’ll also go over code coverage using Android Studio and Kover.
Android Source: https://github.com/santansarah/city-api-client/tree/app-testing
Ktor API Source: https://github.com/santansarah/ktor-city-api/tree/ktor-crud
0:00 JUnit 5 dependencies
2:21 Ktor API Services overview
4:19 Ktor MockEngine
7:50 CityApi JUnit 5 test
10:35 Running a test
11:58 Junit 5 Extension functions
13:16 AppApi overview
17:00 Android coverage
18:27 Set up and Run Kover
Views :35
android studio