Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Caml-list] Unit Testing

6 views
Skip to first unread message

Robert Fischer

unread,
Aug 17, 2007, 2:51:09 PM8/17/07
to caml...@inria.fr
Is there an actively supported unit testing library/framework for Ocaml?

~~ Robert.

_______________________________________________
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

Jeff Meister

unread,
Aug 17, 2007, 2:56:14 PM8/17/07
to caml...@yquem.inria.fr
Whoops, forgot to send this to the list as well.

---------- Forwarded message ----------
From: Jeff Meister <nan...@gmail.com>
Date: Aug 17, 2007 2:52 PM
Subject: Re: [Caml-list] Unit Testing
To: Robert Fischer <rob...@fischerventure.com>


There's OUnit, but I don't know if it's actively maintained. You'd
have to ask Mr. Zeeman.

http://www.xs4all.nl/~mmzeeman/ocaml/ounit-doc/OUnit.html

Edgar Friendly

unread,
Aug 17, 2007, 3:20:05 PM8/17/07
to Robert Fischer, caml...@inria.fr

I believe the Iinteractive people actively use TestSimple internally,
but they haven't updated the project website to show 0.02, which I have
a copy of, and there may exist more recent versions as well.

Announcement:
http://yquem.inria.fr/pipermail/caml-announce/2007-January/000009.html

Webpage:
http://www.iinteractive.com/ocaml/

Maybe this message will provoke an update.

E.

Peter

unread,
Aug 18, 2007, 12:57:05 PM8/18/07
to
On Aug 17, 1:51 pm, Robert Fischer <rob...@fischerventure.com> wrote:
> Is there an actively supported unit testing library/framework for Ocaml?

Even if the project isn't very active, I would still recommend OUnit.
I've been using it for a few months and it works well. I've had to
integrate it with my build scripts and logging system for it to feel
seemless, but I'd have done that with any package. At this point I use
it just as I previously used junit in java.

This might be as good a time as any to ask: has anyone done any
research on when unit tests are necessary in ocaml? I used to do true
unit testing (for every function), but it seems b/c of the type-
checking almost all of them pass every time. I now only do tests at
what I would call the subsystem level, but I'm still figuring out
what's really necessary.

Peter

http://petergroves.com


0 new messages