Online / 6 & 7 February 2021


JUnit Jupiter Extensions: Writing End to End Tests

You can write unit- and integration tests in different ways but sometimes it is needed to write higher level tests like end-to-end tests which is often hard to write. This lecture will show examples of how to write end-to-end tests by using JUnit Jupiter Extension mechanism with the support of Testcontainers and as a foundation Spring Boot in a convenient way.

By using frameworks like Spring Boot there is already a very good support within the framework to write tests and integration tests but if you have to deploy not on the Cloud (like DC/OS, K8S etc.) you might have issues to create an appropriate test environment. In particular if you have several participants which are needed to get your application correctly running. So based on JUnit Jupiter, Testcontainers and some Java code you can write real end-to-end Tests which are very helpful in several ways. It makes it more or less easy to create end-to-end Tests which can be run via your IDE also. There are several aspect which needs to be taken care like how to synchronise the application and you test code and so on.


Photo of Karl Heinz Marbaise Karl Heinz Marbaise