From: skaller <sk...@us...> - 2004-12-18 12:39:03
|
On Sat, 2004-12-18 at 22:38, Richard Jones wrote: > The main program (test.ml) would be generated by the > Makefile and would basically consist of something like: > > let () = > Test1.test (); > Test2.test (); > Test_string_exists.test (); > (* ... *) > print_endline "Tests OK" OK, but the naming 'test999.ml' sux :) Random contributions require a more consistent naming scheme. So how about: test_<author>_<module>_<name>.ml <author> is the authors initials eg rj, js, nc, jh. <module> is the Extlib module being tested, or 'multi' if more than one. <name> is a suggestion what the test is about, possibly with some digits, abbreviated, or just a random code of some kind. All the letters shall be lower case. Example: test_js_enum_iter01.ml The tests all get checked into a CVS repository module distinct from the library. Nicolas will name and create it? Within that module, a directory 'utests' will contain the actual tests .. and nothing else. The Makefile, mainline, etc should be kept separate from the tests. The idea is basically anyone can add tests, but one person should be responsible for the harness. Comments, improvements, violent disagreements? -- John Skaller, mailto:sk...@us... voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net |