How to Create Simple Multi-Stacks Test With Testcontainersby@arie.pratama.s
1,654 reads

How to Create Simple Multi-Stacks Test With Testcontainers

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

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.

Coin Mentioned

Mention Thumbnail
featured image - How to Create Simple Multi-Stacks Test With Testcontainers
Arie Pratama Sutiono HackerNoon profile picture

@arie.pratama.s

Arie Pratama Sutiono

Senior Software Engineer | ex Data Science Manager


Receive Stories from @arie.pratama.s

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!