测试容器:FileNotFoundException:.testcontainers.properties

I. *_*kov 7 docker testcontainers micronaut testcontainers-junit5

我在机器上运行应用程序JUnit5的集成测试(使用)时遇到问题。我的测试依赖于两个容器,我使用Testcontainers java 库定义:和。版本是.micronautWindows 10 ProRabbitMQMS SQL serverDockerv19.03.13

\n

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

\n
[WARN ][DESKTOP-PBCHP60] [testcontainers.utility.TestcontainersConfiguration] \xe2\x80\x93 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)\n
Run Code Online (Sandbox Code Playgroud)\n

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

\n

谁能告诉我如何解决它?我应该自己创建所需的文件吗?或者也许有一种方法可以在运行 IT 期间跳过读取此文件的步骤?

\n