5 ms·
I must hunt down and learn to use a QuickCheck-like library for my language. If I can't find one, I should write one. So what's the (best) equivalent of Qui
by socratic 15y ago
I must hunt down and learn to use a QuickCheck-like library for my language.
If I can't find one, I should write one.
So what's the (best) equivalent of QuickCheck in Ruby? In other languages?
- DanielRibeiro 15y agoScala has scala check: http://code.google.com/p/scalacheck/ http://code.google.com/p/scalacheck/ Ruby, because of non static types, can't be as magical, but people have given their best: https://github.com/IKEGAMIDaisuke/rushcheck https://github.com/IKEGAMIDaisuke/rushcheck
- getsat 15y agoI'm not sure about one that can generate arbitrary data, but Heckle[0] will break your Ruby tests in extravagant ways. [0] http://ruby.sadi.st/Heckle.html http://ruby.sadi.st/Heckle.html
- olliesaunders 15y agoFor Ruby: http://rushcheck.rubyforge.org/about.html http://rushcheck.rubyforge.org/about.html Check out the citations on http://en.wikipedia.org/wiki/QuickCheck http://en.wikipedia.org/wiki/QuickCheck for QuickChecks in other languages.
- marekmroz 15y agoA quick google search returned this: * qc for python (http://dan.bravender.us/2009/6/21/Simple_Quickcheck_implementation_for_Python.html http://dan.bravender.us/2009/6/21/Simple_Quickcheck_implemen...) * QuickCheck Wikipedia page with links ot implementation for many languages (http://en.wikipedia.org/wiki/QuickCheck http://en.wikipedia.org/wiki/QuickCheck) Personally I am looking forward to trying out qc for python. Has anyone here used it before?
- edsrzf 15y agoGo has a QuickCheck-like package distributed with it. It's under testing/quick. http://golang.org/pkg/testing/quick/ http://golang.org/pkg/testing/quick/
- mwotton 15y agorushcheck is a bit moribund, or was last time i checked. https://github.com/hayeah/rantly https://github.com/hayeah/rantly is pretty nice.
- iam 15y agoVery cool, I didn't realize there was a generic version of Pex (the unit test generator for C#). Now if only I could figure out some way to unit test drivers...
- hesselink 15y agoThere's qc [1] for Javascript. [1] http://willowbend.cx/2009/12/05/qc-js-quickcheck-javascript/ http://willowbend.cx/2009/12/05/qc-js-quickcheck-javascript/
- Ironballs 15y agoFor C# I in fact thought of what is in the above quote and wrote my own: https://github.com/ane/DotCheck https://github.com/ane/DotCheck It's not yet very advanced (sometimes the library is a bit messy), but it provides the basic QuickCheck functionality.
- draegtun 15y agoFor Perl it's a module called Test::LectroTest * https://metacpan.org/module/Test::LectroTest https://metacpan.org/module/Test::LectroTest * http://community.moertel.com/ss/space/LectroTest http://community.moertel.com/ss/space/LectroTest