/dev/musings

Adventures in the FOSS World

QuickCheck-like Framework for C++

I just published a preliminary version of QuickCheck++, an attempt at bringing some of the benefits of Haskell's QuickCheck to C++.

As already said, I quite like the QuickCheck concept of specifying properties rather than a few ad-hoc test cases.

In the past, I sometimes missed QuickCheck when I was coding in some language other than Haskell. It won't be the case anymore for C++ as I just published QuickCheck++, a QuickCheck-like framework for C++.

It is a mix between imperative unit testing approaches à la JUnit, and an approach à la QuickCheck, using property specifications and randomly-generated test cases.

Yet another stupid framework or useful stuff? I have not used it seriously yet so I couldn't say. I'll keep you informed. In the meantime, why not try it for yourself and let me know what you think?

Discussion

Akira Takahashi, 2010/03/09 12:44

Hi, thanks for great library.

It checked by VC++2005, and since there was a bug by conversion of unsigned/signed, it corrected.

http://cid-8361f69420bd2fb3.skydrive.live.com/self.aspx/public/C++/QuickCheck++/generate.hh

Enter your comment
QGNQG
 
blog/2009/03/30/quickcheck_like_framework_for_cpp.txt · Last modified: 2009/12/11 18:50 by csoldani
Blog RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki