If you don't clean up the instance variables, when you have a lot of tests and a test runner is still open on the results all this garbage is still referenced (because the test results keeps a reference to the original test case instance) and the image keeps growing like crazy. I can tell you for my experience that in our case it gets easily to GB-sized images, and the GC is not very happy with this. On Tue, Mar 19, 2019 at 12:04 PM Attila Magyar <m.magyar3@gmail.com> wrote:
Max Leske wrote
To answer your question: yes that has been the case for a long time. The same is true for #runCase BTW. Only #setUp is sent after #tearDown (see #prepareToRunAgain).
Max
That's weird. RunCase sends a setUp, a tearDown and cleanUpInstanceVariables. So the test will be executed with uninitialized instance variables at the second time. Why do we need to clean up the instance variables? Or why don't we reinitialize them before running the test?
-- Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html