<html><body bgcolor="#FFFFFF"><div>There are a small number of unit tests spread around the standard image, but no framework.</div><div><br></div><div>I have looked at porting over sUnit or equivalent but haven't yet.  If anyone creates a decent unit testing framework I'd be happy to include it!  </div><div><br></div><div>One issue is Self's preference for passing error handling blocks down the stack rather than having a error handling mechanism passing error objects up the call stack.</div><div><br></div><div>Another issue is where the tests go. In most Smalltalks they seem to sit in a parallel class structure, semantically linked by the class name ie "OrderedCollectionTest" etc.  Is this the best way?  What is the equivalent in Self?  I must admit to not wanting to tie our objects to the formal lobby naming hierarchy more than necessary.  </div><div><br></div><div>Russell</div><div><br>On 22/10/2010, at 5:54 AM, Jan-Paul Bultmann <<a href="mailto:janpaulbultmann@me.com">janpaulbultmann@me.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>




<span style="display:none"> </span>



    <div id="ygrp-text">
      
      
      <p><br></p><div><div>On Oct 21, 2010, at 5:35 PM, Jecel Assumpcao Jr. wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">



<div style="background-color: rgb(255, 255, 255);">
<span> </span>



    <div id="ygrp-text"><p>Jan-Paul Bultmann wrote:<br>
<br>
> Hey,<br>
> I noticed that Self does not have a unit-testing Framework.<br>
<br>
True.<br>
<br>
> In Smalltalk test driven development is a fundamental part of the  <br>
> system, at least as far as I know.<br>
<br>
It is now a major part of Smalltalk and other language frameworks. The<br>
rise of agile programming methods is one factor that has made unit<br>
testing more popular.<br>
<br>
> So were there just more important things to do or is this a design  <br>
> choice?<br>
> Are unit-tests useless in the self world or is there a better thing  <br>
> I'm just missing :)?<br>
<br>
It is important to remember that the Self project was killed way back in<br>
1995. David Ungar continued to improve things on his own and was finally<br>
able to release his changes in 2000. More improvements were done by<br>
Dave's team as part of the Kline project until that was killed in 2006.<br>
As far as I know, Russell Allen is behind most of the changes since<br>
then.<br>
<br>
A result of this history is that many things in Self are frozen as they<br>
were back in 1995. If you look at the built in web browser, for example,<br>
it doesn't even understand tables. I would say that the lack of a unit<br>
test framework is due to the same thing.<br>
<br>
In Self, a unit testing framework would probably be more elegant than in<br>
Smalltalk since it is so much easier to create unique objects.<br></p></div></div></blockquote></div><div>Yeah, I thought of that too.</div><div>I'd be pretty easy to use mock objects simply by exchanging some slots.</div><div><br></div><div>Greets Jan</div><div><br></div><br><blockquote type="cite"><div style="background-color: rgb(255, 255, 255);"><div id="ygrp-mlmsg"><div id="ygrp-msg"><div id="ygrp-text"><p>
<br>
-- Jecel<br>
<br>
</p>

    </div>
     

    

</div>



<!-- end group email -->

</div></div></blockquote><br><p></p>

    </div>
     

    





<!-- end group email -->

</div></blockquote></body></html>