Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Dist-Zilla CPAN distribution.

Report information
The Basics
Id: 81763
Status: rejected
Priority: 0/
Queue: Dist-Zilla

People
Owner: Nobody in particular
Requestors: MPORT [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 4.300028
Fixed in: (no value)



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.
On Fri Dec 07 00:21:24 2012, MPORT wrote: Show quoted text
> Line 97 of Plugin::ModuleBuild seems odd as the test_requires are added > to build_requires.
Module::Build does not support test_requires yet. -- Alexandr Ciornii, http://chorny.net
Correct: there is no test_requires in Module::Build, so Dist-Zilla does what it can. -- rjbs