develooper Front page | perl.perl5.porters | Postings from September 2013

[perl #119619] Contradictory advice and test on using Test::More

Thread Previous | Thread Next
James E Keenan via RT
September 5, 2013 23:16
[perl #119619] Contradictory advice and test on using Test::More
Message ID:
On Thu Sep 05 04:44:55 2013, wrote:
> This is a bug report for perl from,
> generated with the help of perlbug 1.39 running under perl 5.19.4.
> -----------------------------------------------------------------
> perlhack, in its TESTING section, says that tests other than in
> specific
> subdirectories should use Test::More (rather than t/
> But t/porting/test_bootstrap.t specifically tests that no t/**.t files
> use Test::More — adding the line:
>   use Test::More;
> into a test in t/porting/ (not one of the directories perlhack
> mentions
> as requiring ad-hoc testing or makes test_bootstrap.t fail.
> These obviously contradict each other, and I don't know what should be
> used for a new test in t/porting/.
> Either test_bootstrap.t needs restricting to the directories mentioned
> in perlhack, or the advice in perlhack needs changing to say never to
> use Test::More.

I can confirm that adding or editing a file in t/porting which contains
'use Test::More' will cause t/porting/test_bootstrap.t to fail.

Would the patch attached suffice?

Thank you very much.
Jim Keenan

via perlbug:  queue: perl5 status: new

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About