测试容器:FileNotFoundException:.testcontainers.properties

问题描述

我在 junit5 机器上运行 micronaut 应用程序的集成测试(使用 Windows 10 Pro)时遇到问题。我的测试依赖于我使用 Testcontainers Java 库定义的两个容器:RabbitMQMS sql serverDocker 版本为 v19.03.13

在运行集成测试时,我收到以下异常:

[WARN ][DESKTOP-PBCHP60] [testcontainers.utility.TestcontainersConfiguration] – Attempted to read Testcontainers configuration file at file:/$HOME.testcontainers.properties but the file was not found. Exception message: FileNotFoundException: $HOME\.testcontainers.properties (The system cannot find the file specified)

不过,从 macOS 机器运行测试时我没有收到此异常。我的假设是它是 Windows 特定的。

谁能告诉我怎么解决?我应该自己创建所需的文件吗?或者有什么方法可以在运行 IT 时跳过读取此文件的步骤?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)