On 2 Oct 2008, at 23:24, Keith Hodges wrote:

Stéphane Ducasse wrote:
Thanks
I will have a look. I do not really understand what is written, this
is too cryptic.
Does the framework changes remove the fact that tests should start
with test?

Stef
Yes, although the default behaviour is preserved, TestCase subclasses
can publish their own test suites with whatever behaviour they wish.
BTW: the framework has changed somewhat since that documentation was
written.

For example in SSpec "specs" start with spec*

the goal is to enable TestRunner to be used as a runner for SSpec as
well as SUnit, if I ever get around to it.

In the latest version of the SSpec runner that we use (which is also the latest in Squeaksource iirc, as John here made the most recent changes) specs can be whatever format you want, but the spec method(s) must be in the method category "specs" in order to run.

Generally specs (ie BDD) are of the format "shouldDoBlahBlah" so that they read in a BDD manner when they report problems.

In practice this means It parses the camel case in the output message, so for example: if the spec class is AddTwoNumbersSpec then you'd get something like "Add two numbers spec should get negative number for negative arguments". This sentence is English, and is relatively easy to parse and understand what the desired behaviour is.

So: using "should" as a prefix makes sense to me, and I like the use of the method categorisation to define what runs as a spec: it makes it easy to turn some specs on and off within a spec class without having to do method renames, which is generally more hassle (changing a method category is a drag and drop operation).

My €0.02 as usual.
S



******************************************************************************************************************************************
This email is from Pinesoft Limited. Its contents are confidential to the 
intended recipient(s) at the email address(es) to which it has been addressed. 
It may not be disclosed to or used by anyone other than the addressee(s), nor 
may it be copied in anyway. If received in error, please contact the sender, 
then delete it from your system. Although this email and attachments are 
believed to be free of virus, or any other defect which might affect any 
computer or IT system into which they are received and opened, it is the 
responsibility of the recipient to ensure that they are virus free and no 
responsibility is accepted by Pinesoft for any loss or damage arising in any 
way from receipt or use thereof. 
*******************************************************************************************************************************************


Pinesoft Limited are registered in England, Registered number: 2914825. 
Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA

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

Reply via email to