AndroidPro newsletter 🚀
join 3057 developers reading AndroidPro newsletter every week
👉 tips & tricks, articles, videos
👉 every Thursday in your inbox
🎁 bonus on signup – Clean Architecture blueprint
brought to you by Jarek Michalik, Kotlin GDE
You can unsubscribe any time. For details visit our privacy policy.
Blog
- Jarosław Michalik
- October 31, 2023
- 12:25 pm
Short answer: you don't.
Instead...
- Jarosław Michalik
- October 31, 2023
- 12:23 pm
When it comes to testing in Kotlin, we often default to jUnit as the go-to framework.
However, there's an alternative that offers a variety of powerful features – Kotest.
Kotest provides a variety of spec styles, each with its unique capabilities, that make writing tests a breeze.
- Jarosław Michalik
- February 13, 2023
- 7:07 pm
In this article we will explore several ways of creating stubs… using Kotlin idioms.
- Jarosław Michalik
- January 2, 2023
- 4:12 pm
Are you programming for Android and wondering how to write tests for your app? Or maybe you don't have any tests in your project and don't know how to live? Get to know my philosophy of creating tests for Android.
- Jarosław Michalik
- July 6, 2022
- 3:26 pm
Examples of de-mocking test code as presented on Droidcon Berlin 2022.
- Jarosław Michalik
- May 8, 2022
- 3:04 pm
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.
- Jarosław Michalik
- February 18, 2022
- 2:59 pm
Mockito cannot mock/spy because your class is final class? We can fix that.
- Jarosław Michalik
- February 12, 2022
- 1:40 pm
When you have existing test suite containing jUni4 tests and you want to migrate slowly to jUnit5 to make use of new APIs and modern test engine, you may encounter some issues – not all tests will be visible in reports.
- Jarosław Michalik
- November 28, 2021
- 1:32 pm
JVM and Kotlin testing libraries - Gradle dependencies and latest versions.