<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.00.3315.2870" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=466594210-20122002>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=466594210-20122002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=466594210-20122002>I am new to this
list and relatively new to Squeak.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=466594210-20122002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=466594210-20122002>I am trying to
specialize the TestRunner so that it only lists the TestCases of my development
project. I have subclassed TestRunner thus:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=466594210-20122002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=466594210-20122002>TestRunner subclass:
#XProjectUnitRunner</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=466594210-20122002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=466594210-20122002>... and redefined
the gatherTestNames method thus:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=466594210-20122002></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN class=466594210-20122002><FONT size=1>
<P><FONT face=Arial>gatherTestNames</FONT></P>
<P><FONT face=Arial> | theNames |<BR> theNames _ (TestCase
allSubclasses select: [:each | each category = 'XProject-Unit'])
asOrderedCollection.<BR> ^theNames<BR></FONT></P>
<P><FONT face=Arial size=2><SPAN class=466594210-20122002>Unfortunately, when I
attempt to open this runner:</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN class=466594210-20122002>runner _
XProjectUnitRunner new openAsMorph</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN class=466594210-20122002>I get a
MessageNotUnderstood: asStringOrText by one of the meta classes of one of my
subclasses of TestCase...</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN class=466594210-20122002>1) Any ideas why this
happens? (The testcases work fine with the orginal TestRunner
class...)</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN class=466594210-20122002>2) Is there another
easy way to get what I want (a test runner that only lists TestCase subclasses
that are in a particular category).</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN class=466594210-20122002>Thanks for your
help,</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN class=466594210-20122002>Dominic
Williams.</SPAN></FONT></P></FONT></SPAN></FONT></DIV>
<P><FONT size=2>---------------------------------------------------<BR>Vous êtes
à la recherche d'une méthodologie de<BR>développement logiciel souple, humaine
et efficace?<BR>Découvrez "L'eXtreme Programming",<BR>Editions Eyrolles, ISBN:
2-212-11051-0<BR>---------------------------------------------------</FONT> </P>
<DIV> </DIV></BODY></HTML>