From: Nicolas C. <war...@fr...> - 2003-06-04 02:48:41
|
> > > I think it would be a good idea to add unit tests to all the library > > > functions using OUnit: > > > http://home.wanadoo.nl/maas/ocaml/ > > > > > > I think unit tests are *less* necessary in Ocaml due to our wonderful type > > > system, but they're still a good idea. > > > > I agree, but I'm not familiar enough with others langages Unit tests library > > to see if this implementation is a convenient way of doing unit tests. Maybe > > we could write a library mixing unit and benchmarks tests ? ( something > > similar to Doug Bagley's one ). Theses two should stick well together. > > > > My preference would be to be able to compile the library *without* the > unit testing code in it. This will require some thought, and probably > some makefile hacking. Why Brian ? I mean, having a big ExtLib.cma is not a problem, since we're using different modules, the ocaml linker will find itself which ones to choose. Of course, you also need the CMIs since there is currently no way of packaging several CMIs. But compilation speed shouldn't be a problem. BTW, I'm planning to add soon XmlLight to the ExtLib , and I think the best is to link XmlLight modules with others, even if we have separate compilation. About compilation and makefiles issues, I'm also planning to add some options to ocamake so you can write some kind of Ocamakefile and you don't need make any more (with all the problems of calling RM or DEL for cleaning, / against \ in paths , and so on...). Then the ExtLib will be simply compiled (installed ?) by running "ocamake" in its directory. Nicolas Cannasse |