A quick announcement. A couple of months ago I brought up a problem with Dist::Zilla in that it had no way to stop modules from being indexed that are included in the distribution for testing or example purposes only. Ricardo gave me a work around, but I decided it was time to actually implement a real fix. So today I've released Dist::Zilla::Plugin::MetaNoIndex.
Adding this to your dist.ini:
[MetaNoIndex] folder = author.t
Will add a section to your META.yml file like this:
no_index: directories: - author.t
Which will stop PAUSE/CPAN from complaining at you about Foo.pm or whatever other classes you might have created for testing.