Leveraging Kotlin for Tests

Given/When/Then

I heard that adding a featured image helps increase clicks. Does it work? Who knows! If it does, thank you, Sigmund on Unsplash!

Test Names

Structuring Test Code

Providing a formal structure using a DSL

https://www.spekframework.org/gherkin/

Expressing the “Given” scenario as a class

More backtick functions… for Given scenarios!

“Given“ Builders

Footnotes

--

--

--

Software Engineer @Google working on Jetpack Compose. I like Kotlin, Animations and Rabbits! speakerdeck.com/jossiwolf

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Android debug tools

4 reasons why App actions custom intent fails and solutions

Handle Activity-Fragment BackPress Callback in Android

How I Learned to Stop Worrying and Love the ViewModel

Use MQTT in Flutter — Flutter IoT

Tokopedia Android App Journey to Support Dark Mode

Dynamic Feature Modules in a Production App

Flutter permission for webview/ camera permission flutter

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jossi Wolf

Jossi Wolf

Software Engineer @Google working on Jetpack Compose. I like Kotlin, Animations and Rabbits! speakerdeck.com/jossiwolf

More from Medium

Say goodbye to Flakiness : Testing Coroutines and Kotlin Flows [Part 1]

Kotlin Coroutine

Kotlin Multiplatform library with Kotest and Gradle Version Catalog

Implementing payments with Android

Payment using an Android terminal

Android Gradle plugin with Test Fixtures support