caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [ANN] QCheck 0.1
@ 2013-10-07  8:35 Simon Cruanes
  2013-10-07  8:44 ` Francois Berenger
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Cruanes @ 2013-10-07  8:35 UTC (permalink / raw)
  To: OCaml users

[-- Attachment #1: Type: text/plain, Size: 896 bytes --]

Hello,

I'm happy to announce the first release of a small QuickCheck
implementation for OCaml, named `QCheck`. It consists in writing
invariants as function t -> bool for some type t, and then checking that
the invariant holds on randomly generated instances of t.

QCheck is designed so that writing tests is as easy as possible[1],
especially for Arbitrary instances (the part where you generate random
values of a type) where it provides many combinators.

The library requires OCaml >= 4.00.1, and is available under the BSD
license on opam via:

    $ opam install qcheck

You can find documentation at:
http://cedeela.fr/~simon/software/qcheck/QCheck.html
source code at:
https://github.com/c-cube/qcheck
and some explanations here:
http://cedeela.fr/quickcheck-for-ocaml.html

Feedback or comments welcome!
Cheers,

-- 
Simon

[1] your mileage might vary ;)

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] [ANN] QCheck 0.1
  2013-10-07  8:35 [Caml-list] [ANN] QCheck 0.1 Simon Cruanes
@ 2013-10-07  8:44 ` Francois Berenger
  2013-10-07  8:50   ` Simon Cruanes
  0 siblings, 1 reply; 3+ messages in thread
From: Francois Berenger @ 2013-10-07  8:44 UTC (permalink / raw)
  To: caml-list

On 10/07/2013 05:35 PM, Simon Cruanes wrote:
> Hello,
>
> I'm happy to announce the first release of a small QuickCheck
> implementation for OCaml, named `QCheck`. It consists in writing
> invariants as function t -> bool for some type t, and then checking that
> the invariant holds on randomly generated instances of t.
>
> QCheck is designed so that writing tests is as easy as possible[1],
> especially for Arbitrary instances (the part where you generate random
> values of a type) where it provides many combinators.

Is it supported by qtest?

I.e. can some qtest tests in comments use this QCheck library?

Best regards,
Francois Berenger.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] [ANN] QCheck 0.1
  2013-10-07  8:44 ` Francois Berenger
@ 2013-10-07  8:50   ` Simon Cruanes
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Cruanes @ 2013-10-07  8:50 UTC (permalink / raw)
  To: Francois Berenger; +Cc: caml-list

[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]

Le Mon, 07 Oct 2013, Francois Berenger a écrit :

> On 10/07/2013 05:35 PM, Simon Cruanes wrote:
> >Hello,
> >
> >I'm happy to announce the first release of a small QuickCheck
> >implementation for OCaml, named `QCheck`. It consists in writing
> >invariants as function t -> bool for some type t, and then checking that
> >the invariant holds on randomly generated instances of t.
> >
> >QCheck is designed so that writing tests is as easy as possible[1],
> >especially for Arbitrary instances (the part where you generate random
> >values of a type) where it provides many combinators.
> 
> Is it supported by qtest?

I don't think so, but it would be great for people who like to write
tests near the code. I'm not familiar with qtest, so I'm not going to
implement it now (patchs welcome ^^), but it would definitely be
interesting to have the invariants close to the algorithms!

> 
> I.e. can some qtest tests in comments use this QCheck library?
> 
> Best regards,
> Francois Berenger.

-- 
Simon

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-07  8:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-07  8:35 [Caml-list] [ANN] QCheck 0.1 Simon Cruanes
2013-10-07  8:44 ` Francois Berenger
2013-10-07  8:50   ` Simon Cruanes

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