Testing inherited classesby citromatik (Curate)
|on Nov 09, 2010 at 13:42 UTC||Need Help??|
citromatik has asked for the
wisdom of the Perl Monks concerning the following question:
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:
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