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

[Caml-list] [ANN] OSpec 0.1.0 - BDD for OCaml

1 view
Skip to first unread message

Andre Nathan

unread,
Apr 2, 2009, 10:48:14 PM4/2/09
to caml...@inria.fr
Hello

I'm happy to announce the first public release of OSpec, an RSpec-inspired
Behavior-Driven Development library for OCaml using a Camlp4 syntax
extension. You can download this release from the ocamlcore forge at

http://forge.ocamlcore.org/projects/ospec/

or directly clone the repository from Github:

http://github.com/andrenth/ospec/tree/master


Here's a simple example of OSpec's syntax:

describe "An even number" do
it "should be divisible by two" do
let divisible_by_two x = x mod 2 = 0 in
42 should be divisible_by_two
done;

(* or simply: *)
it "should be divisible by two" do
(42 mod 2) should = 0
done
done

OSpec also supports before/after blocks, helper functions to aid in
specification writing, two different report formats and an extension
to the "match" syntax so tha you can use it in your expectations.
Please refer to the README file for details.

Best regards,
Andre

_______________________________________________
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

0 new messages