diff --git a/lib/Intrusive.pm b/lib/Intrusive.pm index cd46f9a..abd5593 100644 --- a/lib/Intrusive.pm +++ b/lib/Intrusive.pm @@ -72,6 +72,9 @@ sub _find_modules { my $WriteMakefile = sub { my %args = @_; $self->requires( $args{PREREQ_PM} || {} ); + my %br = %{ $args{TEST_REQUIRES} || {} }; + %br = (%br, %{ $args{BUILD_REQUIRES} }) if $args{BUILD_REQUIRES}; + $self->build_requires( \%br ); 1; }; local *main::WriteMakefile;