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)

Thursday October 07, 2004
01:34 PM

Unit testing...

[ #21236 ]

I finally took a serious look at simple-test, a unit testing framework for PHP. Its is an xUnit based framework, which mean it looks a lot like the things I did in VB.NET at my prior job.

The use of a unit-test framework gives me a lot of things, things I might have mentioned in this journal earlier and which might hear other of advocates of unit testing saying.

  • A possibility of asserting what I do is correct
  • Possibility of testing the code before delivering to my client
  • The freedom to refactor things
  • Elimination of fear in coding a language I am not that familiar with

NUnit eased my way into VB.NET and I hope simple-test will do the same for PHP. I will probably have to start looking around for a Unit-test framework for Javascript since these are the languages in which I do most of my work.

The last bullet is probably the most important, since I do not have the time to fool around too much, since time is money when you are a freelancer and eliminating fear really helps getting things moving.

Some guy at the YAPC::Europe in Belfast gave a lightning talk, where he quoted a more experienced co-worker who had said to him: "Never code in fear", inspired by this I am attempting to make this a rule of thumb in my business.

And I feel that things are improving...

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.