caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Yoann Padioleau <padator@wanadoo.fr>
To: forum@x9c.fr
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] [ANN] Kaputt 1.0 alpha
Date: Mon, 24 Nov 2008 10:52:24 -0600	[thread overview]
Message-ID: <87tz9xt6bb.fsf@aryx.cs.uiuc.edu> (raw)
In-Reply-To: <1227482073.4929e3d999bca@imp.ovh.net> (forum@x9c.fr's message of "Mon\, 24 Nov 2008 00\:14\:33 +0100")

forum@x9c.fr writes:

Hi Xavier, 

> Selon Stefano Zacchiroli <zack@upsilon.cc>:
>
>> On Sun, Nov 23, 2008 at 09:57:37PM +0100, barista@x9c.fr wrote:
>> > This is clearly alpha work, so any suggestion/criticism will be
>> > welcome in order to enhance/correct it.
>>
>> Hi Xavier, thanks for this.
>>
>> You are probably aware of oUnit [1] which, AFAIK, was the only testing
>> library available for OCaml thus far. Hence I guess you developed
>> Kaputt to achieve something which was not possible with oUnit or to
>> achieve it somehow differently.
>>
>> Can you please comment over the differences between Kaputt and oUnit?
>
> I was indeed aware of oUnit when I started working on Kaputt.
> The initial intent was to provide OCaml with something along
> the lines of the QuickCheck library developed for Haskell
> (http://www.cs.chalmers.se/~rjmh/QuickCheck/). Clones of QuickCheck
> exist for various languages (caml-list@inria.fr) but not for OCaml,

Actually I posted a few years ago a small module imitating parts of quicheck:

 http://aryx.kicks-ass.org/~pad/ocaml/quickcheck.ml

Apparently they even now use my ugly file in the Janet Street Core Library.


> even if a QuickCheck equivalent is provided by the Reins library
> (http://ocaml-reins.sourceforge.net/).

I didn't find much in this ocaml reins library ... and it
looks quite heavy in functors ...


Your library looks very good, very clean. I just noticed you missed 
the 'pair' and 'tuple' random generators.


One criticism is that like many other libraries, such as oUnit, 
ocamlcalendar, they seem a little bit heavyweight. You got hundreds
of functions, 5 modules ... 


>
> Put shortly, the idea of QuickCheck is to encode the specification
> of a function using predicates and to ask the framework to generate
> random test cases to check that the function adheres to its specification.
>
> After designing this part of the library, I realized that it would
> be quite annoying (at least for me, the very first user) to have
> two libraries to code my tests. That's why I decided to add to Kaputt
> the functionalities found in oUnit.
>
> In summary: Kaptt = oUnit + {QuickCheck part of Reins}.
> People may get angry at such effort duplication, and I would understand
> it. My point is to put forward a unique library specialized in testing.
>
>
> Xavier
>
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs


  parent reply	other threads:[~2008-11-24 16:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-23 20:57 barista
2008-11-23 21:30 ` [Caml-list] " Stefano Zacchiroli
2008-11-23 23:14   ` forum
2008-11-23 23:22     ` forum
2008-11-24 16:52     ` Yoann Padioleau [this message]
2008-11-24 17:08       ` Sylvain Le Gall
2008-11-24 19:13       ` [Caml-list] " forum
2008-11-24 21:49         ` Christophe Raffalli
2008-11-24 22:05           ` Yoann Padioleau
2008-11-24 22:52           ` forum
2008-11-25  9:55             ` Jeremy Yallop

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tz9xt6bb.fsf@aryx.cs.uiuc.edu \
    --to=padator@wanadoo.fr \
    --cc=caml-list@inria.fr \
    --cc=forum@x9c.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).