[squeak-dev] Porting GNU Smalltalk code to Squeak

Frank Shearar frank.shearar at gmail.com
Sun Aug 7 21:47:26 UTC 2011


On 7 August 2011 21:19, Andrew Pennebaker <andrew.pennebaker at gmail.com> wrote:
> 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 [1]?

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!)

frank

[1] http://stackoverflow.com/questions/6962084/quickcheck-for-smalltalk



More information about the Squeak-dev mailing list