testcontainers / testcontainers-scala

Docker containers for testing in scala

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is reuse.enable supported?

nacorti opened this issue · comments

We have a heavy container setup, and would like to be able to reuse the same containers for all of our tests. I notice that the java lib provides testcontainers.reuse.enable, but when I try to turn on reuse via config file, it fails silently.

Using testcontainers-scala 0.38.4, which should pull in testcontainers-java 1.14.3, which has reusable containers

My .testcontainers.properties
#Modified by Testcontainers #Wed Mar 10 17:36:09 CST 2021 docker.client.strategy=org.testcontainers.dockerclient.UnixSocketClientProviderStrategy testcontainers.reuse.enable=true

I've tried setting the property by ~/.testcontainers.properties, Classpath, and Env per docs, but with no log warnings or errors re reuse, I'm not sure how I should proceed from here.

Thank you in advance!

Hi @nacorti, you can check this for more details #160