Hi Stef,

>> So far so good.
>> Now however, I had to change
>> ClassDescription>>package
>>      ^ RPackage packageOrganizerClass default packageOf: self name.
>>      "use RPackage packageClassOrganizer instead of the singleton
>>      because tests use the mock"
>>      
>> instead of simply
>>
>> ClassDescription>>package
>>      ^ RPackage default packageOf: self name.
>>
>>
>> I was thinking that if I really want to be as fast as possible I  
>> could
>> separate the package and put the tests in a separate package and  
>> use overrides.....
>> so that
>>
>> ClassDescription>>package
>>      ^ RPackage packageOrganizerClass default packageOf: self name.
>>      "use RPackage packageClassOrganizer instead of the singleton
>>      because tests use the mock"
>>
>> is only used when the tests are loaded
>> Berk
>>
>> So do we have another simple solution at hand?

Why not to redefine package on your fixture ?
Let's say you define a class named #Fixture for your test. You can  
simply redefined Fixture class>>package.

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to