Subject: | Metadata/pod tests should be author tests |
This distribution contains several test files which test the packaging and documentation of the distribution, which are normally author-side tests which are unnecessary to test on installation, and lead to spurious failures which are unrelated to the functionality of the distribution. This includes: manifest.t, meta-json.t, meta-yml.t, and pod.t.
They can either be moved to the standard xt/author/ directory where they would be run manually when authoring, or a small skip line can be added near the top of the file so it only runs with the AUTHOR_TESTING env variable set:
plan skip_all => 'AUTHOR_TESTING required for this test' unless $ENV{AUTHOR_TESTING};
Or to prevent further "use" statements from running for installers:
use if !$ENV{AUTHOR_TESTING}, 'Test::More', skip_all => 'AUTHOR_TESTING required for this test';