News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 
Download Current Issue
ISSUE 3/15/2010 PDF

Need Back Issues?
DOWNLOAD HERE

Receive the print Edition?


 
blogs tab
ASP.NET MVC 2 Ships
ASP.NET MVC 2 has shipped.
03/12/2010 10:26 AM EST

Microsoft plans 'open' Silverlight analytics framework
Microsoft is going to announce a multipurpose analytics framework for Silverlight at MIX.
03/11/2010 09:51 AM EST

About CSS processing
Two sites that lead to a startling CSS conclusion.
03/10/2010 02:29 AM EST

 

Events calendar tab
3/14/2010 to 3/18/2010
Seattle, Wa.
SHARE

3/15/2010 to 3/18/2010
Santa Clara, Calif.
TechWeb

3/15/2010 to 3/17/2010
Las Vegas
Microsoft

3/16/2010 to 3/19/2010
Las Vegas
Penton Media

3/17/2010 to 3/19/2010
Las Vegas
TechTarget


 
Most Read Latest News Blog Resources

AgitarOne: Unit Tests For Old Code




December 1, 2006 — 
By now, every good developer knows that unit testing is of primary importance to the development process. However, Jerry Rudisin, CEO and president of Agitar Software, said that there’s one area of development that is perpetually left out of the unit testing tumult: inherited code.

“One of the things that got in the way of people [trying to do unit testing] has been the fact that they had this really nasty mass of legacy code written in Java that they knew they wanted to start modifying and enhancing, but they didn’t want to touch it because they had no unit tests for it,” said Rudisin.

To address the situation, Agitar in mid-November released AgitarOne, a new product that includes all of Agitar’s previous software offerings mixed together with server-side JUnit test generation.

“Unleash AgitarOne on your legacy code, and it will go through and generate a good set of JUnit tests,” Rudisin said. “They’re not as good as hand-generated JUnit tests on original code, but they serve as a really useful set of regression tests.”

AgitarOne includes all of Agitator 3.0’s standard features: a dashboard for viewing code coverage, support for exploratory testing and code standards enforcement. But AgitarOne’s server-side approach to the testing process brings some new abilities to the mix. For starters, AgitarOne automatically installs the open-source tool Ant to give developers the ability to do continuous integration testing.

But the real reason for running AgitarOne on the server and not on the desktop, said Rudisin, is that the product’s automated test generation is very CPU-intensive. Thus, off-loading automated JUnit test generation onto the server frees up desktops to deal with standard daily tasks. Rudisin added that AgitarOne is capable of utilizing multiple CPUs and servers for its computations.

A standard installation of AgitarOne costs around US$50,000, said Rudisin. The server-side tool is accessed through Eclipse plug-ins, which are included in the product. Developers simply install the AgitarOne plug-in, and are then able to add unit tests through the Eclipse project view. Tests can be generated on a small scale—testing a single class—or a large scale—testing an entire project. All of these tests are generated from scratch as needed.

And while the tests generated by AgitarOne will never be better than hand-coded unit tests written at the same time tested code is completed, the tool automatically generates its tests based on the user’s desired code coverage requirements. That, said Rudisin, means code with absolutely no unit tests can be 70 percent covered from top to bottom with only a few mouse clicks and some dedicated server-side CPU time.


Share this link: http://www.sdtimes.com/link/29870
 

Add comment


Name*
Email*  
Country     


  • Comment
  • Preview
Loading