xsawyerx/module-starter

Move generated t/boilerplate.t to xt/ [rt.cpan.org #48687]

Closed this issue · 3 comments

https://rt.cpan.org/Ticket/Display.html?id=48687

Authors tests (which are not distributed) should be stored in 'xt'
directory (extra tests).
xt/ is automatically added to tests by current versions of build tools.
xt/ must be ignored from MANIFEST.

boilerplate.t is such an author test.

For more information about extra tests:
http://use.perl.org/~Alias/journal/38822

PETDANCE - 2009-08-13 16:52:07

t/boilerplate.t should never be put into the distro. It is for the
author's use only and should be thrown away once it passes.

DOLMEN - 2009-08-14 15:12:30

Le Jeu. Aoû. 13 12:52:07 2009, PETDANCE a écrit :

t/boilerplate.t should never be put into the distro. It is for the
author's use only and should be thrown away once it passes.

I agree. However it may not be obvious, in particular to people for
which english is not the native language ("boilerplate" is not a common
word).
So it would be helpful if your comment above was present at the
beginning of the file.

Also boilerplate.t is not in the MANIFEST that M::S creates, but it will
automatically added by Module::Build when the author runs "Build
manifest" (I know that moving to xt/ will not fix that, but at least it
is more explicit):

Try this:
$ module-starter --mb --module=Foo::Bar --author="Andy Lester"
--email=andy@petdance.com
$ perl Build.PL
$ ./Build manifest

Resolved.