On 5/23/06, Dean Zobec <[EMAIL PROTECTED]> wrote:
When you select an individual test it is not a TTestSetup descendent so
it's not wrapped between a call to OneTimeSetup and OneTimeTeardown.
The problem is in the way the TTestSetup objects are created when
registered:
Ah, that makes sence... :)
Thank you for pointing out the bug, it never surfaced because I rarely
use the TestDecorators (I'm trying to avoid the TestDecorators as they
are breaking the isolation rule in testing).
But TestDecorators work so well for things like setting up DB
connections for a test suite. :)
As I mentioned in a post in FPC-Devel. We had 27 test using the
normal Setup and TearDown methods to create our DB Connections. Even
though that is a small amount of tests, it took over 30 seconds to
complete. Using the TTestSetup I now create a single DB Connection
for all tests it the test suite. Time to complete all 27 test is
around 1.8 seconds. :)
Anyway I'll try to fix it as soon as possible.
Thanks Dean!
Regards,
- Graeme -
--
There's no place like 127.0.0.1
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives