testcontainers-spring-boot icon indicating copy to clipboard operation
testcontainers-spring-boot copied to clipboard

How different is this project w.r.t to https://github.com/testcontainers/testcontainers-java/tree/main/examples/spring-boot

Open nagkumar opened this issue 2 years ago • 1 comments

We are in the process of deciding for springboot we need to use https://github.com/PlaytikaOSS /testcontainers-spring-boot

or

https://github.com/testcontainers/testcontainers-java/tree/main/examples/spring-boot

Any good comparison documentation, even if this project depends on https://github.com/testcontainers/testcontainers-java i.e. when to use this or that..

From the code, I see https://github.com/testcontainers/testcontainers-java is more simple to follow, however, I may be missing the bigger picture of integration testing and hence unable to know when to use which framework.

Any insights would be of good help.

nagkumar avatar Apr 23 '23 10:04 nagkumar

Testcontainers spring boot example is how Spring Boot has been supporting Testcontainers so far through @DynamicPropertySource. PlaytikaOSS/testcontainers-spring-boot has been symplifying that approach by automatically detecting and auto-configuring what I just described. Starting with Spring Boot 3.1 there is a new feature ServiceConnections which support Testcontainers OOTB.

eddumelendez avatar May 03 '23 02:05 eddumelendez