Re: [Caml-list] Any tool for unit tests as comments in OCaml source?
There's some work going on around batteries qtest program. See for instance this wiki page on batteries tests: https://github.com/ocaml-batteries-team/batteries-included/wiki/Developers-Guidelines -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
Re: [Caml-list] Any tool for unit tests as comments in OCaml source?
On 05/14/2012 09:48 PM, Francois Berenger wrote: Hello, What's the gold standard in OCaml to have unit test as comments in source code in order for a tool to automatically extract them and generate a test suite? Thanks, F. Batteries uses a program called qtest to do this; it's within the batteries source tree at the moment. There are plans to move it outside for other projects to use. Docs here: http://batteries.vhugot.com/qtest/ E. -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
Re: [Caml-list] Any tool for unit tests as comments in OCaml source?
Hi I don't know if it's a « gold standard », but Batteries uses qtest. The documentation (clear and concise in my opinion) can be found at http://batteries.vhugot.com/qtest/. Thibault Suzanne Le 15/05/2012 03:48, Francois Berenger a écrit : Hello, What's the gold standard in OCaml to have unit test as comments in source code in order for a tool to automatically extract them and generate a test suite? Thanks, F. -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs