Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re^2: Skip tests if/unless $ENV{FOO} is set using Test::More

by chromatic (Archbishop)
on Apr 29, 2003 at 20:56 UTC ( #254095=note: print w/replies, xml ) Need Help??


in reply to Re^2: Skip tests if/unless $ENV{FOO} is set using Test::More
in thread Skip tests if/unless $ENV{FOO} is set using Test::More

If you're using Test::Harness of 2.0 or newer, you don't need to set a test header. It's still a good idea in cases where you can accidentally run too many tests (see the tests for File::Find, if you're lacking essential horror in your life), but it's not required.

schwern's even suggested relaxing the requirement for headers in general.

  • Comment on Re: Re^2: Skip tests if/unless $ENV{FOO} is set using Test::More

Replies are listed 'Best First'.
Re^4: Skip tests if/unless $ENV{FOO} is set using Test::More
by adrianh (Chancellor) on Apr 29, 2003 at 21:23 UTC

    Your right.

    Should have been clearer. You can't do it that way if you want to provide Test::Harness with a test header.

    Personally I like to do this since it protects me from accidentally dropping tests (many a slip between cut and paste ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://254095]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2022-08-10 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?