[ANN] SUnit-#publishedSuites UseCase

Keith Hodges keith_hodges at yahoo.co.uk
Fri Dec 15 04:21:11 UTC 2006


Use case: (a short story!)

You have written a TestCase class that tests your code in 3.8
In moving to 3.9 some test cases fail.
If you re-write those test cases then you have to keep two versions of 
your TestCase class, one for 3.8 and another for 3.9.

Solution:

Categorise the failing test cases as '3.8- only' to indicate that they 
only work in versions 3.8 and earlier.

add the following:

MyTestCases-c-#publishedSuites

#( #standardTests #squeak38AndEarlier )

and:

MyTestCases-c-squeak38AndEarlier

^('*@v38-*only' #squeak37AndEarlier)

and if not already inherited.

MyTestCases-c-standardTests

"all tests except any categorised under '*only' "

^( '*test|^*@only' )

cheers

Keith

		
___________________________________________________________ 
Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html



More information about the Squeak-dev mailing list