Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix reuse not working and improve mix task with watch feature #128

Merged
merged 5 commits into from
Sep 30, 2024

Conversation

jarlah
Copy link
Member

@jarlah jarlah commented Sep 30, 2024

ensures that the reuse functionality gets same hash across all versions of the library, so updating the library wont create more containers. Also fixed a problem where reuse never worked. Before it always triggered. Now it never triggers. After this PR it will trigger if the reuse property is set to true in ~/.testcontainers.properties 🙈

Mix task can now run like this:

mix testcontainers.test --watch lib --watch test

If cancelled before tests are completed, the tests will continue to run, because its run as a standalone os command via System.cmd. Rerunning before finished in the background is not guaranteed to work properly because tests will use the same container.

fixes #129

@jarlah jarlah changed the title improve mix task and fix reuse issue fix reuse not working and improve mix task with watch feature Sep 30, 2024
@jarlah jarlah merged commit 5e8ac62 into main Sep 30, 2024
6 checks passed
@jarlah jarlah deleted the improve_mix_task branch September 30, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reuse gone from always trigger to never triggering
1 participant