com.playtika.testcontainers 与 org.testcontainers

Wil*_*ill 4 containers testcontainers

当我尝试模拟一些容器数据库并查看可用的内容时,我有点困惑,很多都引用了这两个库,例如以下示例:

https://github.com/mydeveloperplanet/myliquibaseplanet/blob/feature/testcontainers/pom.xml

然而,我在本地管理它们和将它们集成到我的位桶管道之间遇到了许多问题。

是否有一些关于旋转数据库容器以及这两个库的哪些版本彼此兼容的可靠文档。

bsi*_*eup 6

https://github.com/Playtika/testcontainers-spring-boot是https://github.com/testcontainers/testcontainers-java的包装器,为 Spring Boot 和预配置容器提供自动配置。

主要库是 testcontainers-java,您应该参考它的文档: https:
//www.testcontainers.org

此外,Spring Boot 团队在更轻松的集成方面取得了一些重大进展,今天,将 testcontainers-java 与 Spring Boot 一起使用非常容易:
https ://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/ #如何测试容器