Design patterns every Android developer should know.
👉 Learn essential design patterns for Android development, suitable for every level—from beginner to expert developers. 👉 Understand how to write cleaner and more maintainable code, so your applications aren’t just a tangle of hard-to-understand logic.👉 Get hands-on experience with real-world examples, where experts will demonstrate how to implement these design patterns in a live […]
How to grow as an Android dev in 2023?
Link: https://www.youtube.com/watch?v=3KwPztAb5ng
How to refactor your code (without turning the project inside-out)
Are you stuck in a loop of having an old codebase that’s not testable, but not being able to refactor it because there’s no test coverage? This is a common challenge that many software development teams face, but there’s a way out. In this article, we’ll explore a 5-step process to break the cycle and improve […]
Idiomatic Kotlin in tests: idiomatic stubbings
In this article we will explore several ways of creating stubs… using Kotlin idioms.
Unit testing on Android – test pyramide
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.
De-mock your tests: practical recipes
Examples of de-mocking test code as presented on Droidcon Berlin 2022.
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.
How to mock final classes in Kotlin with Mockito?
Mockito cannot mock/spy because your class is final class? We can fix that.
How to use jUnit4 & jUnit5 in one project?
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.
Libraries for Kotlin & JVM Testing
JVM and Kotlin testing libraries – Gradle dependencies and latest versions.