Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] FORT (or other test frameworks)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Patrick M Doane <patrick@w...>
Subject: Re: [Caml-list] FORT (or other test frameworks)
Hi John,

On 12 Sep 2001, John L. Masson wrote:

> Hello list,
> Is anyone here using FORT? Does anyone have any examples or
> documentation for it? 
> I've read, and I thought understood, the source, but I can't get a
> testscript to run. 
> If I just pass it to the 'fort' executable (i.e. 'fort'),
> the Fort module and its functions are not available to the script. 

I would expect this to work... have you installed the executable? The
'fort' executable will need to find the bytecode data for the Fort module
and will search in the OCAMLLIB directory.

Also, inside you will need to refer to the Fort functions
with a qualified prefix (e.g. Fort.test) or include an 'open Fort;;'
directive at the top.

> I can compile the script, and link to fort.cmo and fortmain.cmo, and
> this executable produces a report, but it shows no tests were run.
> If I don't link fortmain.cmo, nothing happens at all.

It may be worthwhile to think about linking Fort into an application, but
there is currently no way to separate the report generation from script

> What am I doing wrong?

If you're still having problems, feel free to e-mail me.



Bug reports:  FAQ:
To unsubscribe, mail  Archives: