caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Integration of tests (was: Re: [Caml-list] invoke function from its name as string)
@ 2008-03-14  8:28 David MENTRE
  0 siblings, 0 replies; only message in thread
From: David MENTRE @ 2008-03-14  8:28 UTC (permalink / raw)
  To: Andrew Gacek; +Cc: Andrej.Bauer, Caml

Hello,

2008/3/13, Andrew Gacek <andrew.gacek@gmail.com>:
> Andrej's solution is interesting since it lets you interleave the
>  regular code with the test code. For my own code, I keep all tests
>  isolated to separate files and in each file I maintain the tests as a
>  list of anonymous functions.

In my own code, I maintain a set of tests per module, tests that can
be activated with a static program-wide compilation flag: if
Config.do_autotests is true, the tests are compiled and executed at
module startup.

For example, see code starting at line 469 in:
  http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/latest-dev?f=4f0c248c82c3;file=srv/voting.ml.nw

Yours,
d.


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

only message in thread, other threads:[~2008-03-14  8:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-14  8:28 Integration of tests (was: Re: [Caml-list] invoke function from its name as string) David MENTRE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).