Docker Testcontainers:FileNotFoundException:.Testcontainers.properties

Docker Testcontainers:FileNotFoundException:.Testcontainers.properties,docker,micronaut,testcontainers,testcontainers-junit5,Docker,Micronaut,Testcontainers,Testcontainers Junit5,我在我的windows10pro机器上运行我的micronaut应用程序的集成测试(使用JUnit5)时遇到问题。我的测试依赖于我使用java库定义的两个容器:RabbitMQ和MS SQL server。Docker版本是v19.03.13 在运行集成测试时,我得到以下异常: [WARN ][DESKTOP-PBCHP60] [testcontainers.utility.TestcontainersConfiguration] – Attempted to read Testcontaine

我在我的
windows10pro
机器上运行我的
micronaut
应用程序的集成测试(使用
JUnit5
)时遇到问题。我的测试依赖于我使用java库定义的两个容器:
RabbitMQ
MS SQL server
Docker
版本是
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的


有人能告诉我怎么修吗?我应该自己创建所需的文件吗?或者,也许有一种方法可以在运行该文件时跳过读取该文件的步骤?

您能描述一下您是如何运行测试的吗?您是否在IDE或命令行中运行,如果是,是哪个shell?@BurtBeckwith,谢谢您的回复。两种选择都失败了。对于命令行,它是powersell。您发布的消息只是警告,而不是错误。它不应该阻止testcontainers启动docker映像。是否有任何错误消息?它们应该以
[ERROR]
开头。