How to Create Simple Multi-Stacks Test With Testcontainers

Written by arie.pratama.s | Published 2020/06/29
Tech Story Tags: programming | java | docker | test-automation | coding | containers | maven

TLDR Testcontainers is a lightweight library that “wraps” docker and connect to test frameworks, such as Junit and Spock. It is modular, as you can see in their maven repositories. This means, you can import only the necessary stacks that matter to you. Using Tescontainers will make this even shorter in Intellij IDEA. It will enable us to use multiple tech stacks in one test class. For instance, you need to test a Kafka consumer that does insert to a Mysql instance, we can define both services in the same class.via the TL;DR App

no story

Written by arie.pratama.s | Senior Software Engineer | ex Data Science Manager
Published by HackerNoon on 2020/06/29