blogger visitor

Techucation

A Blog by Malcolm Yoke Hean Low

 Subscribe in a reader




View Malcolm Low's profile on LinkedIn

Malcolm Low

Create Your Badge

 Subscribe in a reader


Enter your email address:

Delivered by FeedBurner

Unit Testing: Is There Really Any Debate Any Longer?

Posted on Wednesday, September 12, 2012 at 2:00 AM by Malcolm

On a panel several years ago, Dr. Dobbs's editor-in-chief Andrew Binstock was asked what was the greatest benefit that Agile had delivered to him personally. It took him no time to respond “unit testing.”

While this answer is not historically accurate — unit testing precedes the Agile movement — it’s clear that the Agile exponents made it a widespread practice. In large part, because of Kent Beck’s lapidary JUnit implementation, which has been widely copied to most major languages.

The specific benefit Andrew — and many other developers — have enjoyed is quite simply less time spent in the debugger. Today he writes code and then he writes unit tests that exercise the edge cases and one or two main cases. Right away, Andrew can tell if he missed something obvious or if his implementation has a slight burble that mishandles cases he expected to flow through easily.

Read the rest of this artcile here.


Posted in General (RSS)