From: Stevan Little <stevan.little@iinteractive.com>
To: Caml List <caml-list@inria.fr>
Subject: ANNOUNCE: TestSimple - A simple unit testing framework
Date: Sat, 27 Jan 2007 20:14:50 -0500 [thread overview]
Message-ID: <FC532C79-1A2E-4DBD-9602-09A33FDBDE90@iinteractive.com> (raw)
Hello all,
I would like to announce the first release of our new unit testing
framework for OCaml. It can be downloaded from our website here:
http://www.iinteractive.com/ocaml/
It is based heavily on the Perl unit testing framework of the same
name, and produces TAP output (http://en.wikipedia.org/wiki/
Test_Anything_Protocol) which can be read and analyzed by a wide
range of existing Perl tools. The goal of this framework is to make
writing unit tests as simple and as easy as possible (hence the
name). Here is a basic example taken from the TestSimple test suite
itself.
#use "topfind";;
#require "testSimple";;
open TestSimple;;
plan 9;;
diag "... testing O'Caml TestSimple v0.01 ";;
ok true "... ok passed";;
is 2 2 "... is <int> <int> passed";;
is 2. 2. "... is <float> <float> passed";;
is "foo" "foo" "... is <string> <string> passed";;
is [] [] "... is <'a list> <'a list> passed";;
is [1;2;3] [1;2;3] "... is <int list> <int list> passed";;
is ["foo";"bar"] ["foo";"bar"] "... is <string list> <string
list> passed";;
is (1,"foo") (1,"foo") "... is <int * string> <int * string>
passed";;
is TAPDocument.Ok TAPDocument.Ok "... is <type> <type> passed";;
As this is our first released OCaml library, any and all feedback is
very much appreciated.
Thanks,
Stevan Little
----------------------------------------
Senior Developer - Infinity Interactive
http://www.iinteractive.com/
----------------------------------------
reply other threads:[~2007-01-28 1:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=FC532C79-1A2E-4DBD-9602-09A33FDBDE90@iinteractive.com \
--to=stevan.little@iinteractive.com \
--cc=caml-list@inria.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