Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jonasbn (1153)

jonasbn
  reversethis-{gro.napc} {ta} {nbsanoj}
http://e-diot.dk/
AOL IM: BJonasN (Add Buddy, Send Message)

Perl Programmer located in Copenhagen, Denmark. Active member of Copenhagen Perl Mongers.

Author of:

  • Business::DK::CPR
  • Business::DK::CVR
  • Business::DK::PO
  • Business::OnlinePayment::CashCow
  • Date::Holidays
  • Date::Holidays::Abstract
  • Date::Holidays::Super
  • Date::Pregnancy
  • Games::Bingo
  • Games::Bingo::Bot
  • Games::Bingo::Print
  • Module::Info::File
  • Module::Template::Setup
  • Test::Timer

and maintainer of:

  • Tie::Tools
  • XML::Conf
  • Workflow

Journal of jonasbn (1153)

Friday October 04, 2002
06:18 AM

Using Perl Test Capabilites - When Not Writing Modules?

[ #8166 ]

Today I had a 'YAPE' *1. I have written a small CGI script using Perl. It is not a module - it is a simple script, which suites a single purpose, but uses a lot of existing Perl (CPAN) modules. So in order to provide this script with some accompanying tests - I thought what the heck, I'll simply write a test.pl which test that the prerequisites are in order now when I do not have a makefile, cause having a makefile for a CGI seems somewhat stupid.

And since testing is (as I always say), a - SAMP *2, heh I stole this term from an IBM consultant, but I don't think he will mind, and I am not sure whether it is correct but you get my meaning.

So now my CGI script is accompanied by a test.pl and a t directory, which makes in intuitionally easier to test and with more tests I feel confident in the stuff I am programming, but that is another story, bottomline is: Test! it is fun and it is just plain ol'e programming :)

*1 Yet Another Phantastic perl Experience, Perl is intentionally written with a lowercase P.

*2 Simply A Matter of Programming

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.