【问题标题】:Reusing Testcontainers OracleContainer重用测试容器 OracleContainer
【发布时间】:2022-01-15 23:47:21
【问题描述】:

是否可以在项目 testcontainers.properties 上使用 testcontainers.reuse.enable 配置,而不是在我的用户根文件夹中?

【问题讨论】:

    标签: spring junit testcontainers testcontainers-junit5


    【解决方案1】:

    这是不可能的,因为它是针对每个环境而不是针对每个项目的配置。

    关注GitHub issue 中的讨论以获取更多信息。

    checks.disabletestcontainers.reuse.enable 是“任何 var 都可以使用类路径文件配置”规则的两个例外,因为它们被认为是高级优化技术(重用模式甚至是预览功能,而不是稳定的解决方案)。对于高级的东西,需要一定程度的研究。

    【讨论】:

    猜你喜欢
    • 2021-06-14
    • 2019-05-23
    • 2021-01-17
    • 2022-06-29
    • 2021-10-19
    • 2021-12-14
    • 2022-01-14
    • 2020-10-16
    • 2021-09-05
    相关资源
    最近更新 更多