[fpc-pascal] unit testing framework for fpc

Michael Van Canneyt michael at freepascal.org
Mon Jun 27 19:33:49 CEST 2005



On Mon, 27 Jun 2005, Marc Santhoff wrote:

> Hi,
> 
> not long ago there has been some talk about a test framework for object
> pascal on this list. IIRC it was some sort of port of junit to pascal.
> 
> Is it in a usable state?

Very much so.

> Where can I find it?

It's included with FPC by default. Sources are in fcl/fpcunit.
Just include fpcunit in your source. See the examples for a console demo.

Lazarus has a special package that allows you to create either a GUI or
a console test application. Compile and install lazfpcunit (or fpcunitlaz ?)

Michael.




More information about the fpc-pascal mailing list