Kotlin Testing
  • 📆 testing coroutines live workshop
mockk Android Getting Started IDE Kotlin MVVM Masterclass Parametrized Refactor Spek TDD Testing assertions basics conference coroutines data-driven-test date examples exceptions idioms junit kotest kotlintest ktor libraries meta mock-static mocking mockito mockito kotlin mockito-kotlin mocks newsletter okhttp parameterized reflection repository rest talk time
Idiomatic Kotlin in tests: idiomatic stubbings
idioms

Idiomatic Kotlin in tests: idiomatic stubbings

In this article we will explore several ways of creating stubs… using Kotlin idioms.
Read More
Jarosław Michalik
Stubbing with doAnswer vs doReturn – what's the difference?
mocking

Stubbing with doAnswer vs doReturn – what's the difference?

Most of the times while stubbing with Mockito or MockK you will use doReturn construction. But do you know, that you can stub your test double method in other way – with doAnswer. Let's take a look a both stubbing types.
Read More
Jarosław Michalik
How to use MockK in Kotlin? Stubbing and Mocking coroutines made easy.
mocking

How to use MockK in Kotlin? Stubbing and Mocking coroutines made easy.

How to mock suspend function in Kotlin? MockK is the solution. Code examples for coEvery, coAnswers, coReturns
Read More
Jarosław Michalik

Tags

Android 5
Getting Started 1
IDE 2
Kotlin 3
MVVM 1
Masterclass 1
Parametrized 1
Refactor 1
Spek 1
TDD 1
Testing 7
assertions 4
basics 7
conference 3
coroutines 2
data-driven-test 1
date 2
examples 2
exceptions 1
idioms 1
junit 2
kotest 5
kotlintest 2
ktor 1
libraries 1
meta 1
mock-static 2
mocking 4
mockito 4
mockito kotlin 1
mockito-kotlin 3
mockk 3
mocks 1
newsletter 7
okhttp 1
parameterized 1
reflection 1
repository 1
rest 1
talk 1
time 3

Recent Posts

4 Ways to Leverage Kotest Specs for More Robust Testing
May 28, 2023
How to mock data class?
May 15, 2023
Breaking the Loop: A 5-Step Process to Refactor Your Old, Untestable Codebase and Improve Its Quality"
Apr 26, 2023
Powered by Ghost
  • 📆 testing coroutines live workshop

Tags

Android 5
Getting Started 1
IDE 2
Kotlin 3
MVVM 1
Masterclass 1
Parametrized 1
Refactor 1
Spek 1
TDD 1
Testing 7
assertions 4
basics 7
conference 3
coroutines 2
data-driven-test 1
date 2
examples 2
exceptions 1
idioms 1
junit 2
kotest 5
kotlintest 2
ktor 1
libraries 1
meta 1
mock-static 2
mocking 4
mockito 4
mockito kotlin 1
mockito-kotlin 3
mockk 3
mocks 1
newsletter 7
okhttp 1
parameterized 1
reflection 1
repository 1
rest 1
talk 1
time 3

Recent Posts

4 Ways to Leverage Kotest Specs for More Robust Testing
May 28, 2023
How to mock data class?
May 15, 2023
Breaking the Loop: A 5-Step Process to Refactor Your Old, Untestable Codebase and Improve Its Quality"
Apr 26, 2023