London and Detroit schools of unit tests
London and Detroit schools are two popular ways of writing unit tests for our applications. They differ in several details, notably the answer to the question “what is a unit”. It’s likely that you already know them, just not by their names. We may think that they compete with each other, however each has its […]
Building a Kotlin DSL for your automatic tests
Two weeks ago, we entered the world of building domain specific languages in Kotlin. The previous article was rather theoretical. Now it’s time to put the theory into practice. We are going to build a Kotlin DSL for automated tests. The goal is better describing business use cases in the ‘given’ section. Also, why not […]
Efficient test startup: Kotest + Micronaut + Testcontainers
A couple of months ago I published an article, where I showed how to bind Micronaut, Testcontainers and JUnit together. Recently, a new version of Micronaut arrived (3.5) that added the support for Kotest 5 framework. It targets Kotlin language. This is a great opportunity to get back to the topic and try out another […]
Efficient test startup: JUnit + Micronaut + Testcontainers
Some time ago I was wondering how to speed up the execution time of integration tests in my application. I was already using Micronaut framework which gave me a huge boost thanks to incredibly fast startup. But I struggled with Docker containers, started through Testcontainers library. In JUnit, they had to be restarted between test […]