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

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

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
September 5, 2013 23:16
Subject:
[perl #119619] Contradictory advice and test on using Test::More
Message ID:
rt-3.6.HEAD-1873-1378423004-656.119619-15-0@perl.org
On Thu Sep 05 04:44:55 2013, smylers@stripey.com wrote:
> 
> This is a bug report for perl from smylers@stripey.com,
> 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/test.pl).
> 
> 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 test.pl) 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
https://rt.perl.org:443/rt3/Ticket/Display.html?id=119619

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About