Skip to Content
Perl Debugged
book

Perl Debugged

by Peter Scott, Ed Wright
March 2001
Intermediate to advanced
288 pages
4h 56m
English
Addison-Wesley Professional
Content preview from Perl Debugged

Chapter 6. Testing Perl Programs

“Run and find out.”

—The Jungle Book, Rikki-Tikki-Tavi by Rudyard Kipling

Hands up everyone who hates testing their code. Yes, we thought so. And who can blame you? The hidden beliefs that make testing so painful run deep:

  • I might find something so wrong that I have to make a radical change.

  • If I find something wrong, I'll have to delay delivery.

  • I'm a code writer, not a code tester.

  • If I find something wrong, I'll lose plausible deniability unless I take the time to fix it.

  • It's really elegant the way it is. I don't want to be bothered with special cases that no one's likely to hit anyway.

  • Users are the best testers. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Perl Hacks

Perl Hacks

Chromatic, Damian Conway, Curtis Ovid Poe, Curtis (Ovid) Poe
Pro Perl

Pro Perl

Peter Wainwright
Intermediate Perl

Intermediate Perl

Randal L. Schwartz, brian d foy, Tom Phoenix
Perl Testing: A Developer's Notebook

Perl Testing: A Developer's Notebook

Ian Langworth, Chromatic

Publisher Resources

ISBN: 0201700549Purchase book