A trick about running tests without SUNIT runner

Romain Robbes rrobbes at info.unicaen.fr
Fri Mar 5 16:08:39 UTC 2004


Le 5 mars 04, à 12:32, Marcus Denker a écrit :

>
> Am 05.03.2004 um 12:00 schrieb Romain Robbes:
>
>>
>> Le 4 mars 04, à 20:48, ducasse a écrit :
>>
>>> Hi
>>>
>>> I ***really*** appreciate people that submit tests. You are great! 
>>> I'm learning a lot reading your tests:)
>>> and this is so cool to run the tests and get a green bar.
>>>
>>> Now my point: In squeak we do not have yet (in the harvester image 
>>> :) a way to run the test without
>>> SUnit runner interaction. A trick that I use often while writing 
>>> tests is to add "self run: #..." as a comment
>>> This way I can while browsing the class execute the test without any 
>>> UI.
>>
>> If you could use BrowseUnit, you'll get a nice button doing this ...
>> How about including it in the harvester image ?
>>
> The harvester image is the "base" image plus BFAV and 
> ConflictsChecker. (some install RB, I don't,
> because it's to big of a patch). The idea is to use that image for 
> harvesting that you are harvesting for.
> Anything else is confusing.
>

BrowseUnit is very small compared to the RB ...

>> If you can't and if you want to optimise things further, you can lay 
>> out you the comment
>> like that :
>>
>> 	testPeekerUnhibernateBug
>> 	"
>> 		self run: #testPeekerUnhibernateBug
>> 	"
>>
>> This way you can just position your cursor on the line, and do
>> a printIt without having to select the exact expression ...
>> that's at least a tenth of second faster ;-).
>>
> dubble-klicking right behind the " selects the exact expression 
> allready.

That's the "right behind" thing I was trying to avoid ... ;-)
here you can be imprecise ...

>
> --
> Marcus Denker marcus at ira.uka.de
>
>
>




More information about the Squeak-dev mailing list