What's Up with Unit Testing? Part I - InformationWeek
IoT
IoT
Mobile // Mobile Applications
Commentary
9/20/2008
12:00 AM
Commentary
Commentary
Commentary
50%
50%
RELATED EVENTS
Data Tells: Dissecting Every Day Data
May 31, 2017
Join us as the author of the book "Everydata: The Misinformation Hidden in the Little Data You Con ...Read More>>

What's Up with Unit Testing? Part I

Back in May, Andrew Binstock wondered "is the popularity of unit tests waning?" Andrew lists 5 indications he observed to support his conclusion:- Commercial tools are waning- Few OSS products- Unit testing is not taught by major Java instructors- Few books get published on unit testing- xUnit alternatives are completely invisible.

Back in May, Andrew Binstock wondered "is the popularity of unit tests waning?" Andrew lists 5 indications he observed to support his conclusion:

  1. Commercial tools are waning
  2. Few OSS products
  3. Unit testing is not taught by major Java instructors
  4. Few books get published on unit testing
  5. xUnit alternatives are completely invisible.

I am not sure I agree with all these observations. Nevertheless in a followup article in Java World, Andrew continued to ask "Is unit testing doomed?".

Andrew says that two issues with unit testing are that they seem to offer little value and that the evangelism of unit testing in general and TDD in particular also causes antagonism (I can say from personal experience with introducing unit testing to long time C and C++ developers that, indeed, the initial responses are rather cold).

Andrew also quotes former CEO of Agitar (Jerry Rudisin) saying that "unit testing hasn't taken off as mainstream practice".  A survey ran by Scott Ambler for Dr. Dobb's also found that "The more difficult practices, such as TDD and executable specification have lower addoption rates than easier practices such as daily scrum meeting. "

(Although another survey by VisionOne found that within companies where agile practices are used 77% use unit testing and about 49% use TDD.)

I recently read another interesting post on the subject, this time by Dan North about the "end of endotesting" explaining why the record-reply idiom of most mocking framework is not intuitive and more easy to use mocking frameworks like mockito (his example) or Moq and Mocha (my examples) are better.

Now, yesterday I read Roy Osherov's post "Goodbye mocks, Farewall stubs". Roy makes similar observation on the adoption (or lack therof ) of unit testing practices. Roy believes the number one reason holding back unit testing is the learning curve associated with it and suggests we simplify the tools and terminology (and gives a example similar to Dan's mentioned above)

What we see is that both in the Java and the .NET worlds, unit tests adoption have hit a few snags. The way I see it there are event  additional barriers to wide adoption of unit test and TDD,  but I'll talk about that in Part II where I'll also try to talk a little about what can/should  be done.

 

 

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
How Enterprises Are Attacking the IT Security Enterprise
How Enterprises Are Attacking the IT Security Enterprise
To learn more about what organizations are doing to tackle attacks and threats we surveyed a group of 300 IT and infosec professionals to find out what their biggest IT security challenges are and what they're doing to defend against today's threats. Download the report to see what they're saying.
Register for InformationWeek Newsletters
White Papers
Current Issue
2017 State of Data and Analytics
Today's companies are differentiating themselves using data analytics, but the journey requires adjustments to people, processes, technology, and culture. 
Video
Slideshows
Twitter Feed
InformationWeek Radio
Archived InformationWeek Radio
Join us for a roundup of the top stories on InformationWeek.com for the week of November 6, 2016. We'll be talking with the InformationWeek.com editors and correspondents who brought you the top stories of the week to get the "story behind the story."
Sponsored Live Streaming Video
Everything You've Been Told About Mobility Is Wrong
Attend this video symposium with Sean Wisdom, Global Director of Mobility Solutions, and learn about how you can harness powerful new products to mobilize your business potential.
Flash Poll