SUnit is so integral that it's built into the Smalltalk package manager. But it's a bit redundant to use one unit testing framework's methods in another, no? Also, the current output format tries to match QuickCheck's as closely as possible.<div>
<br></div><div>I've used JUnit before, but I'm not sure what "Data and Theory" refer to.<br><div><div><br></div><div>QuickCheck likes to test functions. It works really well in Haskell, even figuring out how to generate the variables to send to the function.</div>
<div><br></div><div>For more information see the Introduction to QuickCheck article.</div><div><a href="http://www.haskell.org/haskellwiki/Introduction_to_QuickCheck">http://www.haskell.org/haskellwiki/Introduction_to_QuickCheck</a></div>
<div><br></div>Cheers,<div><br></div><div>Andrew Pennebaker</div><div><a href="http://www.yellosoft.us" target="_blank">www.yellosoft.us</a></div>
<br><div class="gmail_quote">On Sun, Aug 7, 2011 at 5:47 PM, Frank Shearar <span dir="ltr"><<a href="mailto:frank.shearar@gmail.com">frank.shearar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 7 August 2011 21:19, Andrew Pennebaker <<a href="mailto:andrew.pennebaker@gmail.com">andrew.pennebaker@gmail.com</a>> wrote:<br>
> Can someone help me make QuickSmash Squeak-friendly? It's a unit test<br>
> framework based on QuickCheck.<br>
> QuickSmash<br>
> <a href="https://github.com/mcandre/quicksmash" target="_blank">https://github.com/mcandre/quicksmash</a><br>
<br>
</div>Ah, you gave up and wrote your own port of cl-quickcheck, then [1]?<br>
<br>
If I understand QuickCheck correctly, it's two things:<br>
* assertions / specifications describing correct behaviour;<br>
* a combinator library of random data generators.<br>
<br>
The first could probably use SUnit's assert: and friends (which<br>
definitely need some helper methods - I re-implement an<br>
#assert:equals:description in every library I write, just about).<br>
<br>
The second will probably need no more help than an easy way to port<br>
gst code to Smalltalk. I'll try and experiment with Coral (which uses<br>
a suspiciously gst-like syntax for its scripts) and see if I can't<br>
hack something up.<br>
<br>
TestRunner needs some updating imo: I'd like to see JUnit's Theory<br>
stuff, into which QuickSmash would trivially plug in: with the caveat<br>
that I may have missed the point, QuickSmash sounds to me just like<br>
the Data part of the Theory stuff. (And when we find a failing test<br>
case, we report the case and store the continuation of the test case<br>
allowing an interactive debugging session on the problem! Yay!)<br>
<br>
frank<br>
<br>
[1] <a href="http://stackoverflow.com/questions/6962084/quickcheck-for-smalltalk" target="_blank">http://stackoverflow.com/questions/6962084/quickcheck-for-smalltalk</a><br>
<br>
</blockquote></div><br></div></div>