Using Assert for Trace statements (was: [lazarus] LazarusPascal code)

Michael Van Canneyt michael.vancanneyt at wisa.be
Thu May 4 05:41:07 EDT 2000




On Thu, 4 May 2000, Florian Klaempfl wrote:

> "Michael A. Hess" wrote:
> > 
> > Marc Weustink wrote:
> > >
> > > Just an idea, write an app/form (or apps) to test all our components.
> > > At least I don't know the status of all components. With the latest
> > > changes not all controls behave as they should (missing events and
> > > stuff). Starting with this you will find thing to fix.
> > 
> > That is a good idea. This is something I have been wanting to do for
> > some time but never find the time. Make a simple form with all of the
> > various components available. This serves 2 purposes. It allows us to
> > test the functionality of controls and when changes are made it is easy
> > to figure out if other controls are broken. Secondly it allows us to
> > have a nice screenshot to place on the web site showing exactly what can
> > be built with the LCL.
> > 
> > Be sure to include all of the standard dialogs and tabs, etc. etc. etc.
> > 
> 
> This could be extended to contain some advanced test tool like the 
> "gremlins" from the Palm Emulator: these gremlins do some pseudo random
> input to stress your application, it shouldn't be that hard by
> sending wm_keydown/wm_mouse*** messages.
> 
> Pseudo random because it must be reproducable if it crashes: this can
> be done easily using a specific randseed value instead of calling
> randomize.

I was told that borland has such a tool (for internal use); it runs about 40.000
tests or so. (Don't remember exactly, memory becomes fuzzy here :) ) 

You'll have to do some work in order to get to this number :-)

Michael.







More information about the Lazarus mailing list