Войти
  • 1416Просмотров
  • 9 месяцев назадОпубликованоCodersee- Kotlin on the backend

Getting Started with MockK in Kotlin (1/5)

In the first video in a series dedicated to MockK and Kotlin, we will learn how to create mocks, define stubbings, and utilize matchers. 🛑 🛑The most comprehensive Ktor course🛑 🛑 ✅ 15 hours of video content ✅ 120 practical and 19 theoretical lessons ✅ closed Discord community ✅ private GitHub repository === LEARN EVERYWHERE === 🔹 🔹 @pjoterwolak 🔹 🔹 🔹 🔹 🔹 ========================== === 00:00 Intro 00:28 Why do we need mocking? 01:52 Mocking, Stubbing, Test Doubles 03:08 MockK Imports 04:17 Implementing code to test 11:18 Add tests 18:46 Defining mocks with MockK 21:46 Missing Stubbing 23:24 Stubbing in MockK 25:11 MockK Matchers 27:30 Unit Functions ===