« 08 January 2007 - Apache FOP 0.93 Released | Main | 10 January 2007 - Apache HTTP Server 2.2.4 Released »

January 09, 2007

09 January 2007 - Apache AntUnit 1.0 Released

The Apache Ant Developer Team is proud to announce the 1.0 release of the Apache AntUnit Ant library.

AntUnit provides Ant tasks that allow you to write (functional) tests in Ant build files. For example

<target name="testTouchCreatesFile">
<au:assertFileDoesntExist file="${foo}"/>
<touch file="${foo}"/>
<au:assertFileExists file="${foo}"/>
</target>

would assert that a certain file was freshly created by the <touch> task.

We don't suggest that you write the unit tests for all your code using AntUnit. But if you are writing Ant tasks, AntUnit makes it very easy to write tests and in fact is used by the Ant developers to test Ant itself.

In addition to some assertion tasks, the library provides an <antunit> task that runs all tests in selected build files and a formatter mechanism similar to the <junit> task.

The release is the first "proper" release of AntUnit, it is almost identical to the beta2 release.

----

-- The Apache Ant Developer Team

---- Posted by Tetsuya Kitahata at January 9, 2007 08:52 AM
http://www.apachenews.org/archives/000929.html
[ Category : Apache Ant ] (PDF)(XML)