[squeak-dev] Porting GNU Smalltalk code to Squeak
andrew.pennebaker at gmail.com
Sun Aug 7 23:11:54 UTC 2011
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
I've used JUnit before, but I'm not sure what "Data and Theory" refer to.
QuickCheck likes to test functions. It works really well in Haskell, even
figuring out how to generate the variables to send to the function.
For more information see the Introduction to QuickCheck article.
On Sun, Aug 7, 2011 at 5:47 PM, Frank Shearar <frank.shearar at gmail.com>wrote:
> On 7 August 2011 21:19, Andrew Pennebaker <andrew.pennebaker at gmail.com>
> > Can someone help me make QuickSmash Squeak-friendly? It's a unit test
> > framework based on QuickCheck.
> > QuickSmash
> > https://github.com/mcandre/quicksmash
> Ah, you gave up and wrote your own port of cl-quickcheck, then ?
> If I understand QuickCheck correctly, it's two things:
> * assertions / specifications describing correct behaviour;
> * a combinator library of random data generators.
> The first could probably use SUnit's assert: and friends (which
> definitely need some helper methods - I re-implement an
> #assert:equals:description in every library I write, just about).
> The second will probably need no more help than an easy way to port
> gst code to Smalltalk. I'll try and experiment with Coral (which uses
> a suspiciously gst-like syntax for its scripts) and see if I can't
> hack something up.
> TestRunner needs some updating imo: I'd like to see JUnit's Theory
> stuff, into which QuickSmash would trivially plug in: with the caveat
> that I may have missed the point, QuickSmash sounds to me just like
> the Data part of the Theory stuff. (And when we find a failing test
> case, we report the case and store the continuation of the test case
> allowing an interactive debugging session on the problem! Yay!)
>  http://stackoverflow.com/questions/6962084/quickcheck-for-smalltalk
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev