I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2007-10-17 18:16:28-07 by ilial
startup method is run at the end
I'm seeing a startup method get run twice. Once at the beginning, as expected. And once at the end, not expected. Anybody else seeing this? I'm using Test::Class 0.24
Direct Responses: 6281 | Write a response
Posted on 2007-10-17 19:26:06-07 by adrianh in response to 6280
Re: startup method is run at the end

Hi,

Not seen this myself :-) Can you reproduce the problem with a (hopefully small) code example?

Adrian

Direct Responses: 6283 | Write a response
Posted on 2007-10-18 02:29:16-07 by ilial in response to 6281
Re: startup method is run at the end
My fault.

I was inheriting the startup method and then running Test::Class->runtests, which ran the tests from the base class and the subclass separately.
ie. Foo inherits from Bar which inherits from Test::Class

Using "Foo->runtests" fixes the problem.
Direct Responses: 6284 | Write a response
Posted on 2007-10-18 08:09:30-07 by adrianh in response to 6283
Re: startup method is run at the end
Ah. If you have an abstract test class that you don't want to be run automagically by Test::Class runtests you can use SKIP_CLASS - see the docs for details.
Direct Responses: Write a response