Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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

by Jenda (Abbot)
on Apr 30, 2003 at 17:12 UTC ( [id://254391]=note: print w/replies, xml ) Need Help??

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

There is another problem with tests. Quite often to make a meaningfull test you have to ask the user some questions or ask him to do something. Eg. since most of the functions in Win32::FileOp are supposed to create some kind of dialogs I have to ask the user to click the dialogs off (OK, I would not have to. I could require that they have Win32::Setupsup installed and hope they will not interfere with the dialogs appearing and disappearing on their screen.

But what if the test is run by some automated tool. Eg. by the one ActiveStates use for their PPM repository. How do I as a module author?

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature

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

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 02:13 GMT
Find Nodes?
    Voting Booth?

    No recent polls found