[Bug 235954] New: Review Request: perl-Test-use-ok - Alternative to Test::More::use_ok

bugzilla at redhat.com bugzilla at redhat.com
Wed Apr 11 01:27:30 UTC 2007


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.




https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=235954

           Summary: Review Request: perl-Test-use-ok - Alternative to
                    Test::More::use_ok
           Product: Fedora Extras
           Version: devel
          Platform: All
               URL: http://search.cpan.org/dist/Test-use-ok/
        OS/Version: Linux
            Status: NEW
          Severity: medium
          Priority: normal
         Component: Package Review
        AssignedTo: nobody at fedoraproject.org
        ReportedBy: cweyl at alumni.drew.edu
         QAContact: fedora-package-review at redhat.com


SRPM URL: http://home.comcast.net/~ckweyl/perl-Test-use-ok-0.02-1.fc6.src.rpm
SPEC URL: http://home.comcast.net/~ckweyl/perl-Test-use-ok.spec

Description:
According to the Test::More documentation, it is recommended to run
use_ok() inside a BEGIN block, so functions are exported at compile-time
and prototypes are properly honored.

However, people often either forget to add "BEGIN", or mistakenly group
"use_ok" with other tests in a single "BEGIN" block, which can create
subtle differences in execution order.

With this module, simply change all "use_ok" in test scripts to "use ok",
and they will be executed at "BEGIN" time. The explicit space after "use"
makes it clear that this is a single compile-time action.

-- 
Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




More information about the Fedora-package-review mailing list