use strict; use warnings; use Test::More; use xt::Util; use Test::Requires 'Module::Install::AuthorRequires'; eval { make_meta_data(*DATA) }; like $@, qr/\QCan't find author dependency Dummmmmmmmmmmmmmmmmy\E/; done_testing; __DATA__ @@ Makefile.PL use inc::Module::Install; cpanfile; name 'Dummy'; all_from 'lib/Dummy.pm'; tests 't/*.t'; WriteAll; @@ cpanfile on 'develop' => sub { requires 'Dummmmmmmmmmmmmmmmmy'; }; @@ lib/Dummy.pm package Dummy; use 5.006; our $VERSION = '0.1'; 1; __END__ =pod =head1 AUTHOR Tatsuhiko Miyagawa Emiyagawa@bulknews.netE =head1 COPYRIGHT Copyright 2012- Tatsuhiko Miyagawa =head1 LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut