New test framework takes advantage of Scala



Email    print   
October 12, 2009 —  Software development and publishing company Artima has created an open-source testing framework that aims to speed up tests by leveraging the Scala programming language.

ScalaTest 1.0, released today, can reduce the amount of test code lines required in testing, Artima executives claimed. This reduction in code lines is a product of Scala, an object-oriented language that compiles to Java bytecode and runs on the Java Virtual Machine.

“Scala lets you express yourself much more concisely compared to Java,” said Bill Venners, president of Artima. “ScalaTest uses Scala to make testing code much more concise and clear.”

ScalaTest 1.0 integrates with the JUnit and TestNG testing frameworks so that users can work ScalaTest into their existing projects. It also integrates with Ant and Maven for build tasks. The framework can run on multiple processor cores for parallel testing.

“ScalaTest will use those CPUs to speed up the test,” Venners said. “That’s a big problem. A lot of people spend a lot time waiting for tests to run today. So by letting tests run in parallel, you can exploit all the cores you have.”

With ScalaTest 1.0, testers can do unit, functional, integration and acceptance testing. The framework can cater to test-driven development, behavior-driven development and other development methodologies.

In explaining the benefits of Scala and why a Java developer would learn it, Venners said, “I think that the real story is that any successful language becomes difficult to enhance over time because you have to maintain backwards compatibility with source code. Java hit that wall a few years ago.”

As a result, new languages such as Groovy, JRuby and Scala began springing up on the Java platform to tie up the shortcomings in Java productivity. One of Scala’s benefits is that it has a static type system, similar to Java’s, that can do static type checking to find errors during a compile.

“That’s why some people see it as a potential successor to Java,” Venners said of the static type.

Scala’s functional programming capability is also an asset, Venners said. Traditionally, Java involves more object-oriented programming, but Scala brings a functional/object hybrid language. The functional programming aspect of Scala is what makes it faster and more productive than Java for developers, he said.




Related Search Term(s): Artima, Scala, testing


Share this link: http://sdt.bz/33822
 
Most Read Latest News Blog Resources


Comments


10/12/2009 02:48:25 PM EST

Jeff - the other emerging "framwork" related to Scala is the Lift Web Development Framework (www.liftweb.net). Twitter, eBay, SAP and others are using it and trying to determine if its the 'next thing.' Disclosre: I have no affiliations with the project, but know its creator, David Pollak. David and Lift are drawing a lot of attention these days.

United StatesKF


Add comment


Name*
Email*  
Country     


  • Comment
Loading




close
NEXT ARTICLE
Not so fast when it comes to testing in the cloud
Developers face outsourcing, virtual lab management and mobile devices as obstacles Read More...
 
 
 
 
News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 

Download Current Issue
FEBRUARY 2012 PDF ISSUE

Need Back Issues?
DOWNLOAD HERE

Want to subscribe?


 
blogs tab
Are you at risk for burnout?
Burnout is a severe problem and it can strike at any time. Here's how to tell if you are nearing the edge.
02/09/2012 02:16 PM EST

Agility, mom, and apple pie
If we're to evaluate the state-of-the-art in software development, we should start with the values espoused in the Agile Manifesto.
02/07/2012 11:57 AM EST

RIM woos developers with free tablet
How do you get more apps ported to the BlackBerry PlayBook? By giving every developer a free tablet, of course!
02/04/2012 01:57 PM EST

GitHire: Use Headhunters to Find Your Perfect Programmer
Are you a hiring manager tired of scouring the job boards? Check out this new service that will find 5 people interested in your jobs.
02/03/2012 12:17 PM EST

Facebook claims hacker cred
Facebook's SEC S-1 filing form includes a short essay on the Hacker Way by Mark Zuckerberg himself.
02/02/2012 08:26 AM EST

Ryan Dahl steps down
Ryan Dahl, creator of Node.js, steps back from his position as gatekeeper for the project.
02/01/2012 04:58 PM EST

 
Events calendar tab
2/13/2012 to 2/16/2012
Santa Clara
TechWeb

2/26/2012 to 2/29/2012
San Francisco
BZ Media

2/27/2012 to 3/2/2012
San Francisco
RSA

3/4/2012 to 3/7/2012
Las Vegas
IBM Tivoli

3/5/2012 to 3/9/2012
San Francisco
TechWeb