Channels ▼
RSS

Open Source

ScalaTest Testing Framework Released



Artima has released ScalaTest 1.0, an open-source testing framework that speed ups the testing process for Java-based applications by reducing the number of lines of code required in testing. Additionally, ScalaTest can run on multiple processor cores for parallel testing.

With ScalaTest, which is released under the Apache 2.0 license, you can test either Scala or Java code. By integrating with tools such as JUnit and TestNG, Ant, and Maven, ScalaTest supposedly makes it easier to take testing to a higher, more productive level in new or existing Scala or Java projects.

ScalaTest is designed to support different kinds of testing, including unit, functional, integration, and acceptance testing, while supporting test-driven, behavior-driven, and other development methodologies.

As its name suggests, ScalaTest is written almost entirely in Scala, a hybrid functional/object programming language. Scala is a multi-paradigm language that integrates essential features of iterative object-oriented programming with the functional programming paradigm. It compiles to JVM bytecodes -- you can use Java libraries in your Scala programs and inherit from Java classes. Scala lets you isolate those parts of your code that truly need the benefits of functional programming and write everything else in Java. While there's also a version for .NET, Scala is really married to Java, having been developed by Martin Obersky, one of the designers of Java generics and the author of the current javac reference compiler.

ScalaTest was written by Bill Venners, George Berger, Josh Cough, and other contributors. ScalaTest, which is almost exclusively written in Scala, follows and improves upon the Java code and design of Artima SuiteRunner, another testing tool written primarily by Bill Venners.

You can get the source code here.


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.
 

Video