March 20, 2019
3:14 p.m.
Thanks for the explanation Torsten. I do use setUp for initialization but one exception is BabyMock2TesCase which serves as a base class for other tests. The reason why its variables are created in the init is that the users would likely forget sending a setUp to the super class in their own setUp. I'm glad there are rules defined for this now. However I still have mixed feelings about this. The usage of cleanUpInstanceVariables feels like a hack and runCase feels broken from symmetrical point of view. If a convention breaks something, it's not just a convention anymore and should be enforced more strictly. -- Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html