【问题标题】:SpringBoot Integration testing Sybase and TestcontainersSpringBoot 集成测试 Sybase 和 Testcontainers
【发布时间】:2019-09-19 11:41:31
【问题描述】:

是否可以使用带有Testcontainers 的sybase 数据库进行spring boot 的集成测试?

我无法在本地机器上安装 docker。

【问题讨论】:

    标签: java spring-boot integration-testing junit5 testcontainers


    【解决方案1】:

    对于您的情况,遗憾的是,您需要 docker 才能使用 Testcontainers。 https://www.testcontainers.org/supported_docker_environment/

    我建议在执行测试时使用 H2 数据库或进行测试配置以使用另一个“真实”数据库。

    玩得开心!

    【讨论】:

      猜你喜欢
      • 2022-10-21
      • 2021-05-02
      • 1970-01-01
      • 2017-12-19
      • 2019-05-30
      • 2020-08-10
      • 2019-09-06
      • 2021-09-24
      • 2020-07-28
      相关资源
      最近更新 更多