You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reuse of testcontaines requires additional setup. #13
It's looks strange - requirement to add some property on Windows only to have same behavior on all platforms.
Library should have same behavior for same set of properties on all platforms.
I've tested the library on Ubuntu and Windows envs and observe that TC reuse is not working on my Ubuntu 20 with latest docker versions. Looks like 'reuse' is not a stable feature but I think we should add some notes on this property.
changed the title [-]Reuse of testcontaines requires additional setup on some environments. [/-][+]Reuse of testcontaines requires additional setup. [/+]on Mar 22, 2021
Activity
andrei-punko commentedon Mar 22, 2021
It's looks strange - requirement to add some property on Windows only to have same behavior on all platforms.
Library should have same behavior for same set of properties on all platforms.
akudiyar commentedon Mar 22, 2021
Related issue: testcontainers/testcontainers-java#1781
vrogach2020 commentedon Mar 22, 2021
@andrei-punko you are right. It seems that behavior should be similar for all environments: reuse option is off by default. See
https://github.com/testcontainers/testcontainers-java/blob/master/core/src/main/java/org/testcontainers/utility/TestcontainersConfiguration.java#L167
I've tested the library on Ubuntu and Windows envs and observe that TC reuse is not working on my Ubuntu 20 with latest docker versions. Looks like 'reuse' is not a stable feature but I think we should add some notes on this property.
[-]Reuse of testcontaines requires additional setup on some environments. [/-][+]Reuse of testcontaines requires additional setup. [/+]bsideup commentedon Mar 23, 2021
withReusesays that the container is "reusable" (as in, can be used by multiple test sessions, not just tests in the same testing session)testcontainers.reuse.enable=trueis an OS-independent option to say "this environment supports the containers reuse"vrogach2020 commentedon Nov 11, 2021
We have nothing to do with our library here after @bsideup 's clarifing comment.
Closing issue