About test presence

ducasse ducasse at iam.unibe.ch
Sat Dec 20 07:43:15 UTC 2003


On 20 déc. 03, at 04:15, Colin Putney wrote:

>
> On Dec 19, 2003, at 12:58 AM, ducasse wrote:
>
>> Hi colin
>>
>> for me I just would like to have some consistency:
>> 	knowing how to name the testCase according to the class name
>> 	for Integer having IntegerTest
>> 	and for the category the same as the class but with tests
>>
>> After if people wants more we can discuss. For now I would like to 
>> have tests testing the current
>> image much present and regular because regularity is related to 
>> beauty when this is well defined.
>>
>> Stef
>
> I'm all for consistency, as long as it doesn't impose a structure on 
> my tests. I'd like to be able, for example, to add tests for floating 
> point math and rename the fixture ArithmeticTest if that made sense.
>
> How about a convention that TestCase subclasses be named XyzTest where 
> Xyz is a descriptive name which could be, but doesn't have to be, the 
> name of a class being tested. Similarly, test cases should be in 
> categories which end with '-Test'.
>
> Would that be sufficiently consistent?

yes
The idea of a convention is to know when we want to break it :))
But at least for 99% of the case I just do not have to think.


>
> Colin
>
>




More information about the Squeak-dev mailing list