testcontainers-python icon indicating copy to clipboard operation
testcontainers-python copied to clipboard

Add ResourceCleaner for stop containers after exit (#104)

Open mrk-andreev opened this issue 3 years ago • 2 comments

I suggest to stop all containers after application stop. I used atexit like JVMHookResourceReaper in testcontainers-java.

mrk-andreev avatar Apr 24 '22 10:04 mrk-andreev

Codecov Report

Merging #208 (3e0175b) into master (c5b7b1c) will decrease coverage by 0.40%. The diff coverage is 61.53%.

:exclamation: Current head 3e0175b differs from pull request most recent head d32e089. Consider uploading reports for the commit d32e089 to get more accurate results

@@            Coverage Diff             @@
##           master     #208      +/-   ##
==========================================
- Coverage   87.12%   86.72%   -0.41%     
==========================================
  Files          30       30              
  Lines         839      851      +12     
  Branches       58       58              
==========================================
+ Hits          731      738       +7     
- Misses         78       83       +5     
  Partials       30       30              
Impacted Files Coverage Δ
testcontainers/core/docker_client.py 56.36% <61.53%> (+0.54%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov-commenter avatar Apr 25 '22 20:04 codecov-commenter

@mrk-andreev Any updates on this?

gaby avatar Aug 29 '22 00:08 gaby