Subject: | ModuleBuild plugin places test_requires into build_requires |
---------------
Given dist.ini
---------------
[Prereqs / TestRequires]
Test::More = 0
Test::Exception = 0
------------------
Expected Build.PL
------------------
"test_requires" => {
"Test::Exception" => 0,
"Test::More" => 0
},
---------------
Actual Build.PL
---------------
"build_requires" => {
"Module::Build" => "0.3601",
"Test::Exception" => 0,
"Test::More" => 0
},
======================================
Line 97 of Plugin::ModuleBuild seems odd as the test_requires are added
to build_requires. It also stands-out from how the other prereqs are added:
$prereqs{build_requires} =
$prereqs{build_requires}->clone->add_requirements(
$prereqs->requirements_for(qw(test requires))
);
Not certain if this is a bug, or done intentionally for compatibility
reasons.