citromatik has asked for the wisdom of the Perl Monks concerning the following question:
Hi all
Recently, one of my CPAN modules have been criticized for not having enough tests. This module is a class that only serves methods to other classes by inheritance and lacks a constructor.
The problem is that different independent modules can inherit this one:
Base # No constructor Base::X # Inherits Base, has constructor Base::Y # Inherits Base, has constructor
What is the best way to test Base without assuming that Base::X or Base::Y are installed? (In fact, they can not be installed before Base, because package Base is a pre-requisite of Base::X and Base::Y). Currently I test Base as part of the Base::X and Base::Y testing
Thanks in advance
citromatik
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Testing inherited classes
by chromatic (Archbishop) on Nov 09, 2010 at 16:51 UTC | |
Re: Testing inherited classes
by choroba (Cardinal) on Nov 09, 2010 at 14:52 UTC | |
Re: Testing inherited classes
by sundialsvc4 (Abbot) on Nov 09, 2010 at 16:07 UTC | |
Re: Testing inherited classes
by kcott (Archbishop) on Nov 10, 2010 at 07:08 UTC |
Back to
Seekers of Perl Wisdom