【发布时间】:2022-01-15 23:47:21
【问题描述】:
是否可以在项目 testcontainers.properties 上使用 testcontainers.reuse.enable 配置,而不是在我的用户根文件夹中?
【问题讨论】:
标签: spring junit testcontainers testcontainers-junit5
是否可以在项目 testcontainers.properties 上使用 testcontainers.reuse.enable 配置,而不是在我的用户根文件夹中?
【问题讨论】:
标签: spring junit testcontainers testcontainers-junit5
这是不可能的,因为它是针对每个环境而不是针对每个项目的配置。
关注GitHub issue 中的讨论以获取更多信息。
checks.disable和testcontainers.reuse.enable是“任何 var 都可以使用类路径文件配置”规则的两个例外,因为它们被认为是高级优化技术(重用模式甚至是预览功能,而不是稳定的解决方案)。对于高级的东西,需要一定程度的研究。
【讨论】: