4

Is there a QuickCheck module for Smalltalk, especially for Gnu Smalltalk, Squeak, and/or Pharo?

Wikipedia: QuickCheck

mcandre
  • 22,868
  • 20
  • 88
  • 147
  • Are you looking for something similar to what JUnit/NUnit provide with their Theory/Data test runners, together with random generation of test data? – Frank Shearar Aug 06 '11 at 09:25
  • 1
    Heh, here I was going to say "if there's a Common Lisp port of QuickCheck, a Smalltalk port would be doable". And then I saw the author name of cl-quickcheck! – Frank Shearar Aug 06 '11 at 12:28

2 Answers2

4

There is now.

mcandre
  • 22,868
  • 20
  • 88
  • 147
2

I wrote an alternative implementation to mcandre's: SqueakCheck.

It adds a TheoryTestCase to SUnit, which permits one to write parameterised test cases. SqueakCheck attempts to automatically determine (based on messages sent to the parameter) what kind of object to give the theory, and a collection of data generators then craft such an object.

Frank Shearar
  • 17,012
  • 8
  • 67
  • 94