Run garbage collector on AfterLastTestMethodFinished #5843
Labels
feature/test-runner
CLI test runner
type/enhancement
A new idea that should be implemented
type/performance
Issues related to resource consumption (time and memory)
The garbage collector can be already configured to run after every X (default: 100) Tests.
I realized most memory can be freed up when a test-case with all its tests is finished:
May we add a configuration option to also trigger the garbage collector on event
AfterLastTestMethodFinished
?E.g. trigger a new function
GarbageCollectionHandler::lastTestMethodFinished
Current triggers:
phpunit/src/Runner/GarbageCollection/GarbageCollectionHandler.php
Lines 75 to 86 in 3e6c0dc
The text was updated successfully, but these errors were encountered: