in reply to How to specify tests dependencies with Makefile.PL?

But it seems that `test_requires' option doesn't work.

What test_requires option; where is that documented?

See Clean smoke-test install for Inline based modules using Inline::MakeMaker

  • Comment on Re: How to specify tests dependencies with Makefile.PL?

Replies are listed 'Best First'.
Re^2: How to specify tests dependencies with Makefile.PL?
by OlegG (Monk) on Jan 03, 2012 at 12:19 UTC
    >What test_requires option; where is that documented?

    I found it on perlmonks :)

      With it being in META_MERGE, it's a sign that it's just there to be used by some other module that reads the meta files. The only module that I know of that uses test_requires is Module::Install, but I've never actually used it, so I don't know all of its intricacies (eg, if you need to hide stuff in META_MERGE)

      Of course, if you dig through the Module::Install::API documentation, you'll find the following notes:

      As of this writing, test_requires is just an alias for build_requires, but this may change in the future.

      The values set by build_requires and test_requires are passed to ExtUtils::MakeMaker as a BUILD_REQUIRES attribute, which may fall back to PREREQ_PM if your ExtUtils::MakeMaker is not new enough.