Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [ANN] OSpec 0.1.0 - BDD for OCaml
@ 2009-04-03  2:52 Andre Nathan
  0 siblings, 0 replies; only message in thread
From: Andre Nathan @ 2009-04-03  2:52 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-03  2:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-03  2:52 [ANN] OSpec 0.1.0 - BDD for OCaml Andre Nathan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox