InfoQ

News

Archeology: Testing Sacred Text Found

Posted by Deborah Hartmann on Apr 28, 2007 08:48 PM

Community
Agile
Topics
Agile Techniques
Tags
Fun,
Testing,
TDD
Alberto Savoia of Agitar Software has found and translated for the Artima Blog an ancient treasure: "The Way of Testivus - Unit Testing Wisdom From An Ancient Software Start-up," which turned out to be some good advice on developer and unit testing, packaged as twelve fake, pretentious, and somewhat cryptic bits of ancient Eastern wisdom  - but good for a laugh.

Subtitled "Less Unit Testing Dogma, More Unit Testing Karma," the article recounts the tale of a Himalayan expedition that uncovered an unprecedented text:
Among the many amazing things they discovered inside the cave was the most amazing thing: a note left by one of the programmers:
“We have finished the release ahead of schedule – again. All the tests pass, so we are taking the rest of the week off. We are going sailing.”
What was the secret of these ancient programmers? The expeditioners searched each cubicle for clues. In addition to various Dilbert™ calendars, they found “The Way of Testivus”. Who wrote this mysterious booklet?

Is the content of this text responsible for these ancient programmers being able to complete projects ahead of schedule?
The article includes the full text of The Way of Testivus, including explanations and profound poetry for each of the 12 principles:

If you write code, write tests.
Don’t get stuck on unit testing dogma.
Embrace unit testing karma.
Think of code and test as one.
The test is more important than the unit.
The best time to test is when the code is fresh.
Tests not run waste away.
An imperfect test today is better than a perfect test someday.
An ugly test is better than no test.
Sometimes, the test justifies the means.
Only fools use no tools.
Good tests fail.


Here is just a sample from The Way of Testivus:
The pupil asked the master programmer:
“When can I stop writing tests?”

The master answered:
“When you stop writing code.”

The pupil asked:
“When do I stop writing code?”

The master answered:
“When you become a manager.”

The pupil trembled and asked:
“When do I become a manager?”

The master answered:
“When you stop writing tests.”

The pupil rushed to write some tests.
He left skid marks.

If the code deserves to be written,
it deserves to have tests.


Related news:
Good Agile Karma by Gunjan Doshi & Deborah Hartmann.

Related Sponsor

VersionOne is recognized by Agile practitioners as the leader in Agile project management tools. Companies such as Adobe, BBC, CNN, Dow, HP, IBM, Sony and 3M have turned to VersionOne to help deliver greater value to their customers.

No comments

Reply

Exclusive Content

Typemock: Past, Present and Future

Eli Lopian of Typemock answers a few questions on Typemock origins and where Typemock is headed.

Agile in Practice: What Is Actually Going On Out There?

Scott Ambler talks about actual data resulting from surveys made during 2006-2008, showing how Agile is perceived and implemented within organizations.

Building Smart Windows Applications

From QCon 2008, Daniel Moth presents on using Visual Studio 2008 and .NET 3.5 to create compelling rich Windows applications.

Joshua Kerievsky about Industrial XP

Joshua Kerievsky, founder of Industrial Logic, talks about Industrial Extreme Programming which extends XP by including practices dealing with management, customers and developers.

Jeff Barr Discusses Amazon Web Services

Amazon Web Services (AWS) Evangelist Jeff Barr discusses SimpleDB, S3, EC2, SQS, cloud computing, how different Amazon services interact, origins of AWS, AWS globalization and the March AWS outage.

More Than Just Spin (Up) : Virtualization for the Enterprise and SaaS

Cloud services have helped bring virtualization to the forefront. Its full power however, also includes other benefits such as high availability, disaster recovery, and rapid provisioning.

Ruby Beyond Rails

John Lam talks about his path to dynamic languages, some of the problems of making IronRuby run fast, and how the DLR helps with implementing languages.

VMware Infrastructure 3 Book Excerpt and Author Interview

VMware Infrastructure 3: Advanced Technical Design Guide and Advanced Operations Guide provides a wealth of practical insights into setting up virtualization in todays corporate environments.