Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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?

Jenda
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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2024-04-24 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found