in reply to Re^3: Redesigning distribution with Module::Starter
in thread Redesigning distribution with Module::Starter

> Test files don't need to know the module names besides their functionality

could you please elaborate how this is done?

especially if I need to specify import options?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^4: Redesigning distribution with Module::Starter

Replies are listed 'Best First'.
Re^5: Redesigning distribution with Module::Starter
by Corion (Patriarch) on Jul 21, 2020 at 20:29 UTC

    My author tests load Makfile.PL and call the function get_module_data() from it (well, main::get_module_data()), which returns the hash used to initialize ExtUtils::MakeMaker. From there, they can find the "main" module name if such is needed.

    The module specific tests use the module, but I'm not sure where Module::Starter comes into play with tests specific to a single module.