Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by tbone1 (Monsignor)
on Apr 30, 2003 at 12:36 UTC ( [id://254258]=note: print w/replies, xml ) Need Help??


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

This is an excellent idea in general, not just in CPAN modules. In the places I've worked, we've often had QA people who didn't understand the first thing about the operating system they were on. I've often had to build in 'testing' conditions into the code just so the QA people can test their code. I know this sounds bad, because they would be testing against the test versions of code and databases instead of the production versions; however, getting them to even understand that concept wasn't easy. The idea of them actually remembering to type something like ". ~/.project_test.ksh" was laughable.

(Please note that not all QA people with whom I've worked have been this way, but more than a few have; I'm sure we could all swap stories. If the slumping economy has had one positive effect, it's that we can now pick and choose better QA people than in the last few years.)

Anyway, I often provide "-P" and "-T" options (where applicable) to force things to production and test, respectively. It saves time, as merlyn noted, and forces one to consider development/test/production issues early, rather than later when they would need to be shoe-horned in awkwardly.

--
tbone1
Ain't enough 'O's in 'stoopid' to describe that guy.
- Dave "the King" Wilson

  • 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://254258]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-03-29 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found