Kotlin Testing
  • masterclass 17.02.2023
Testing Android Getting Started IDE Kotlin MVVM Parametrized Spek TDD 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 mockk mocks newsletter okhttp parameterized reflection repository rest talk time
An attempt to unit test generated DataBinding code
Android

An attempt to unit test generated DataBinding code

Story of an attempt to test the code generated by DataBinding library.
Read More
Jarosław Michalik
Parameterized tests with Kotest
kotest

Parameterized tests with Kotest

Creating parameterized tests in Kotlin: data driven testing, collection inspections and generating test cases with FreeSpec.
Read More
Jarosław Michalik
Handling exceptions in tests: Junit & Kotest
Handling exceptions in tests: Junit & Kotest
exceptions

Handling exceptions in tests: Junit & Kotest

Exceptions are crucial part of some Java APIs. How to assert that exceptions was thrown? In this note you will examples of various exception assertion techniques.
Read More
Jarosław Michalik
Test execution basics: passed, failed, crashed
basics

Test execution basics: passed, failed, crashed

When the test passes, when it fails and why it crashes? In this short note we will try to find the answers for those questions.
Read More
Jarosław Michalik
Assert softly - when one assertion is not enough
Assert softly - when one assertion is not enough
kotest

Assert softly - when one assertion is not enough

It's usually in our best interest to keep one assertion per test method. Yet, situation when more than one check in single test method is present may occur.
Read More
Jarosław Michalik
Building Unit Tests for ViewModel in TDD style
MVVM

Building Unit Tests for ViewModel in TDD style

In his example we will try to implement VenueDetailsViewModel in TDD style. TDD (Test Driven Development) is development technique, where developer relies on unit tests created before actual implementation.
Read More
Jarosław Michalik
KotlinUnitTesting - repository with examples
repository

KotlinUnitTesting - repository with examples

This repository contains examples of basic unit tests written in Kotlin. In specific directories you can find gradle buildscript with needed dependencies and configuration, simple unit test and parameterized test.
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
idioms 1
junit 2
kotest 4
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

Idiomatic Kotlin in tests: idiomatic stubbings
Feb 13, 2023
Open Android Unit Testing Workshops – 17.02.2023
Feb 3, 2023
Unit testing on Android – test pyramide
Jan 2, 2023
Powered by Ghost
  • masterclass 17.02.2023

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
idioms 1
junit 2
kotest 4
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

Idiomatic Kotlin in tests: idiomatic stubbings
Feb 13, 2023
Open Android Unit Testing Workshops – 17.02.2023
Feb 3, 2023
Unit testing on Android – test pyramide
Jan 2, 2023