[fpc-pascal] unit testing framework for fpc

Marc Santhoff M.Santhoff at t-online.de
Mon Jun 27 22:49:51 CEST 2005


Am Montag, den 27.06.2005, 19:33 +0200 schrieb Michael Van Canneyt:
> 
> 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.

I'm impressed and pleased to hear that. :)

I assume I should refresh my compiler version from 1.9.4 to 2.0 to use
it (or check out manually)?

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

No Lazarus involved yet, still on my list...

Thank you all,
Marc






More information about the fpc-pascal mailing list