in reply to Re: Test::Class and setup methods
in thread Test::Class and setup methods

(setup => +1) syntax solves everything quite nicely. Thanks!

As for the second thing, if a parent and derived class both have setup methods but the parent setup methods are not overridden in the child, the calling order should be parent methods first, not alphabetical first. Otherwise, when a subclasses' setup method just happens to have a test name that's alphabetically prior to parent classes' setup method names, the setup methods may very well get called in an inappropriate order.

Cheers,
Ovid

New address of my CGI Course.

Replies are listed 'Best First'.
Re^3: Test::Class and setup methods
by adrianh (Chancellor) on Mar 14, 2007 at 12:44 UTC
    Check. Already on the todo list as the rather opaque "Use JUnit 4.0's inheritance model for before/after running order?" :-)