http://qs321.pair.com?node_id=870301

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