Graeme Geldenhuys schreef:
On 5/23/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> On the other hand, it would speed up things quite a bit.

Correct.
I'm not against changing to fpcunit, but it will require again a lot of
work...

Yes much faster!  I just finished a case in point on our code.  One of
our developers (new to unit testing) used the Setup and TearDown
methods in a TestSuite to setup a db connection, do a test and close
the connection. Over and over and over.  The 27 tests took over
30seconds to execute.

I relocated the db connection code to a test decorator (part of
fpcUnit and took 15 lines of code to implement) and now it creates a
single connection for the lifetime of all tests in that TestSuite.
Time to run those 27 test are now 1.9 seconds!

I can't see how something like this is possible with the way the fpc
team does testing.


It doesn't create database connection at all :-)

Vincent.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to