Gabriel Roldán ha scritto: > Hi all, > > I recently learned a trick from the "Pragmatic Unit Testing" book (highly > recommended among with "The Pragmatic Programmer") that I guess may well > worth being used in a couple places. > > It is about one time set up and tear down for unit tests for things such as > setting up a connection pool and the like, that I guess could be beneficial > for online tests at least. > > In my case it helped me reduce ArcSDEDataStoreTest from about 58 seconds to > about 7, sounds good uh?
Definitely. Yeah, having connection pool up just once will make the connection pool work more, and as a result, show up eventual bugs in it too (something you don't see if you setup the connection pool, ask two connections, and tear it down right away). Gabriel, thanks for sharing :) Cheers Andrea ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
