CPANTSテストをローカルで実行する
CPAN Testers Reports: Indexというディストリビューションの配布形式をテストをするサイトがあるのですが、そのテストを行なうModule::CPANTS::Analyseというモジュールがあります。これに付属してくるcpants_lint.plを使うとローカルで簡単にテストすることが出来ます。
試しにModule::Starterで作成しただけのディストリビューションをテストしてみました。
% module-starter --module=MyApp % cd MyApp % perl Makefile.PL % make % make dist % % cpants_lint.pl MyApp-0.01.tar.gz Checked dist MyApp-0.01.tar.gz Kwalitee rating 100.00% (20/20) Failed optional Kwalitee tests and what you can do to solve them: * has_example Add a directory matching the regex (ex|eg|examples?|samples?|demos?) to your distribution that includes some scripts showing one or more use-cases of the distribution.
こんな感じ。