From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id C8FAFBBC4 for ; Fri, 3 Apr 2009 04:48:03 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtwDAL8V1UnIuX5CgWdsb2JhbACWGQEBFiK4WoN8Bg X-IronPort-AV: E=Sophos;i="4.38,431,1233529200"; d="scan'208";a="26924886" Received: from mta19.f3.k8.com.br ([200.185.126.66]) by mail1-smtp-roc.national.inria.fr with ESMTP; 03 Apr 2009 04:48:02 +0200 Received: from localhost (localhost [127.0.0.1]) by smtpa.f3.k8.com.br (Postfix) with ESMTP id D203628000A4 for ; Fri, 3 Apr 2009 02:48:00 +0000 (GMT) X-Virus-Scanned: amavisd-new at k8.com.br Received: from smtpa.f3.k8.com.br ([127.0.0.1]) by localhost (mta19.f3.k8.com.br [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SGoN+UDOIxVX for ; Fri, 3 Apr 2009 02:48:00 +0000 (GMT) Received: from [189.106.92.119] (unknown [189.106.92.119]) by smtpa.f3.k8.com.br (Postfix) with ESMTP id 857272800085 for ; Fri, 3 Apr 2009 02:47:59 +0000 (GMT) Subject: [ANN] OSpec 0.1.0 - BDD for OCaml From: Andre Nathan To: caml-list@inria.fr Content-Type: text/plain Date: Thu, 02 Apr 2009 23:52:46 -0300 Message-Id: <1238727166.6004.12.camel@homesick> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 ocaml:01 camlp:01 syntax:01 syntax:01 nathan:98 functions:01 tree:02 match:02 readme:03 library:03 let:03 repository:03 extension:06 extension:06 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