Kotlin Testing
mocking Android Getting Started IDE Kotlin MVVM Parametrized Spek TDD Testing assertions basics conference coroutines data-driven-test date examples exceptions junit kotest kotlintest ktor libraries meta mock-static mockito mockito kotlin mockito-kotlin mockk mocks newsletter okhttp parameterized reflection repository rest talk time
De-mock your tests: practical recipes
mocking

De-mock your tests: practical recipes

Examples of de-mocking test code as presented on Droidcon Berlin 2022.
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 mock final classes in Kotlin with Mockito?
mockito

How to mock final classes in Kotlin with Mockito?

Mockito cannot mock/spy because your class is final class? We can fix that.
Read More
Jarosław Michalik
Mocking and stubbing suspend functions with MockK
mocking

Mocking and stubbing suspend functions with MockK

How to easily stub or mock suspend function in Kotlin? MockK is the solution. See MockK examples for mocking coroutines.
Read More
Jarosław Michalik

Ready to take your skills to the #nextlevel?

Join open workshops
masterclass

Open workshops

Join open masterclass on Android Unit Testing. Conducted by Jarosław Michalik, Kotlin GDE.
Claim your spot

Tags

Android 5
Getting Started 1
IDE 2
Kotlin 3
MVVM 1
Parametrized 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
junit 2
kotest 4
kotlintest 2
ktor 1
libraries 1
meta 1
mock-static 2
mocking 4
mockito 3
mockito kotlin 1
mockito-kotlin 2
mockk 2
mocks 1
newsletter 7
okhttp 1
parameterized 1
reflection 1
repository 1
rest 1
talk 1
time 3

Recent Posts

Unit testing on Android – test pyramide
Jan 2, 2023
Startuje III edycja kursu Android Unit Testy!
Nov 14, 2022
Intro to jUnit5 for Android Developers (free course)
Oct 5, 2022
Powered by Ghost

Ready to take your skills to the #nextlevel?

Join open workshops
masterclass

Open workshops

Join open masterclass on Android Unit Testing. Conducted by Jarosław Michalik, Kotlin GDE.
Claim your spot

Tags

Android 5
Getting Started 1
IDE 2
Kotlin 3
MVVM 1
Parametrized 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
junit 2
kotest 4
kotlintest 2
ktor 1
libraries 1
meta 1
mock-static 2
mocking 4
mockito 3
mockito kotlin 1
mockito-kotlin 2
mockk 2
mocks 1
newsletter 7
okhttp 1
parameterized 1
reflection 1
repository 1
rest 1
talk 1
time 3

Recent Posts

Unit testing on Android – test pyramide
Jan 2, 2023
Startuje III edycja kursu Android Unit Testy!
Nov 14, 2022
Intro to jUnit5 for Android Developers (free course)
Oct 5, 2022