Free Newsletters
InfoWorld Daily

InfoWorld
Log-in | Register
Page 2 of 2  «  Previous Page

Test before you leap into development

 

Your mileage may vary for all sorts of reasons. Some programmers take to TDD like ducks to water, others don't (for more on this idea, see our exclusive interview with Brian Marick , founder of Testing Foundations). Some projects support more fluid business environments than others and must evolve not only during development but also while in use.

Free IT resource

Open Source Business Conference (OSBC) May 22-23, 2007

Sponsored by OSBC

Free IT resource

Virtualization Insights from Top Experts - Learn how virtualization gets real!

Sponsored by Dell

If outsourcing is part of your development strategy, it's incredibly useful to know that your software can be modified safely by new teams. When we interviewed Glen Snyder, vice president of engineering at Natick, Mass.-based edocs, for "Leveraging a Global Advantage," he stressed the value of a testing safety net.

"A developer working here in Natick can easily modify code written by a guy in Sri Lanka," Snyder says. "We build every hour against our tests, and when somebody needs to make a change, they trust the tests to tell them if they did something bad."

Developers increasingly rely on components, and now Web services, created by other developers. Here TDD can have a dual benefit. Writing a quick series of tests to exercise some unknown code is a great way to learn what the code really does, as opposed to what it's documented to do. The resulting tests can then be used to assure that, as the component or service evolves, it continues to behave in the expected ways.

It doesn't cost much to try TDD on a modest scale. The xUnit tools are freely available for many programming languages (see Unit testing for Java and .Net made simple). Individual developers within your organization can choose to start using them and, quite probably, some already are. But TDD doesn't replace stress, load, usability, and acceptance testing. So if TDD takes hold, you'll want to consider how to integrate it with these conventional techniques. Cunningham's FIT (Framework for Integrated Test) is one such effort; it aims to connect business analysts and their acceptance tests to the TDD process.

TDD may also reveal new uses for conventional testing tools. Deborah Kablotsky, director of product management and customer support at RadView Software in Burlington, Mass., notes that although her company's products focus on load testing, their underlying engine is a general-purpose scriptable emulator. "It can instantiate Java classes and exercise things on a component level," she says, "and it can emulate communication protocols like HTTP or JDBC." Here's how TDD could mesh with that technology: To practice TDD effectively, tests have to be quick and easy to write. But setting up a complex environment -- with databases and networks in predictable configurations -- is arduous. Conventional testing tools that specialize in simulating real-world conditions could help lower TDD's activation threshold.

TDD doesn't claim to be a silver bullet. It's just a simple, common-sense approach to doing what programmers have always known they should do: Test early and often. Nobody would argue that you shouldn't adopt these good habits. The question is how to sustain them. For a growing number of software professionals, the combination of xUnit tools and test-first methods are proving to be a good answer.


»  Previous Page | 1 | 2 



 


 
Jon Udell is lead analyst and blogger in chief at the InfoWorld Test Center.

  More of Jon Udell's column
  Jon Udell's Weblog

Newsletter Check out all of our free newsletters!
Enter e-mail address:




 

TOP NEWS:


»  Four quick tips for choosing an IM security product
71 percent of businesses will invest in real-time messaging this year. If you're one of them, be sure to protect your enterprise

»  Forrester analysts ID hot IT jobs
Research group finds 16 IT roles with a promising future

»  Nvidia claims 10 hours of HD video on Tegra chip
The Tegra 600 and 650 can be used with hard disk drives and are designed partly for mobile Internet devices

»  Database vendors add Google's MapReduce
Greenplum and Aster Data Systems will support Google's programming technique, developed for parallel processing of large data sets across commodity hardware

»  Network management: Tips for managing costs
New technologies, changing requirements, and ongoing equipment maintenance and upgrades cost money, but there are ways to manage expenses

»  EMC targets SMBs, branch offices with new low-end storage
Celerra NX4 highlights include thin provisioning, snapshot technology for data recovery and backups, and Web-based console for management of storage volumes




REMOTE ACCESS: MAINTAIN SECURITY AND DECREASE THE BURDEN ON IT
Join this interactive webcast to discover how IT Managers can control access rights, end-user security settings and end-point authorization. Sponsor: Citrix(R) GoToMyPC(R) Corporate

»  Click here to view this Webcast
  Planning For A Disaster
This new, comprehensive Solutions Guide is your one stop source for Disaster Recovery. In it you'll learn how to reduce the likelihood of a disaster and to create a rock solid business continuity plan should you face a disaster situation. Sponsored by Equallogic

»  Click here to download now

- Special Advertising Partners -
WHITE PAPERS
 

» Technology White Papers Library

Technology White Papers by Topic

Technology White Papers E-mail Alert

Find out when the latest white paper is available:
 
 
INFOWORLD MARKETPLACE
 
» BUY A LINK NOW
 
SEE ALSO
• Rational readies Microsoft app dev tools
• CTO Forum: Taking programming to the extreme


FIND PRODUCTS AND COMPANIES
» COMPLETE PRODUCT GUIDE



TECHNOLOGY INDEX
• Applications
• Application Development
• Security
• Networking
• Wireless
• Platforms
• Hardware
• Data Management
• Storage
• Web Services
• Business
• Telecom
• Professional Services
• Standards

TECH WATCH 


What's the 411 on GOOG-411?
Just as Google has become synonymous with "performing a Web search," 411 is understood to mean "information" -- as in "what's the 411?" I was thus surprised to discover, from a billboard, no less, that the king of search is taking on the ...

Apple HTML source reveals 'iPhone Extreme'
"This one's a stretch..." reports AppleInsider. Um, yeah. Reporting on HTML code sightings of product names could be called a stretch, but iPhone Extreme has a ring to it. Now, that sounds like the product Apple should have released first, rather ...

COLUMNISTS

Unified under law
Ephraim Schwartz's Column and Blog (InfoWorld) - In the litigious world we live in, deploying a unified communications platform in your enterprise could...
» MORE COLUMNISTS

MORE INFOWORLD BLOGS


Open Sources 
Product Management
When I joined MySQL four years ago, there was quite a lot of debate about product management. We didn't actually have ...

Zero Day 
Botnet herders tending smaller flocks
New research backs up the theory that botnet operators are keeping their networks smaller in a continued effort to keep ...



• Advice Line
• Database Underground
• The Deep End
• Enterprise Mac
• Geeks in Paradise
• Grid Meter
• The Gripe Line
• InfoWorld Daily
• Inside IT
• IT Troubleshooter
• ITXtreme
• Open Sources
• ProdBlog
• Real World SOA
• Reality Check
• Security Adviser
• SMB IT
• The Storage Network
• Tech Watch
• Virtualization Report
• Zero Day

ADVERTISEMENT


RESOURCE CENTERadvertisement 

GOVERNMENT IT & POLICY
'If you don't go after the network, you're never going to stop these guys. Never.'
From the State Department, All the News for Inquiring Minds
TechPresident, the Internet Citizenry's New Consensus Taker



Sponsored Technology Links

 
 
 HOME  NEWS  BLOGS  PODCASTS  VIDEOS  TECHNOLOGIES  TEST CENTER  EVENTS  CAREERS   About | Advertise | Awards | RSS | Contact Us 

Copyright © 2008, Reprints, Permissions, Licensing, IDG Network, Privacy Policy, Terms of Service.
All Rights reserved. InfoWorld is a leading publisher of technology information and product reviews on topics including viruses,
phishing, worms, firewalls, security, servers, storage, networking, wireless, databases, and web services.

CIO :: ComputerWorld :: CSO :: Demo :: GamePro :: Games.net :: IDG Connect :: IDG World Expo
Industry Standard :: IT World :: JavaWorld :: LinuxWorld :: MacUser :: Macworld :: Network World :: PC World :: Playlist