AntUnit is an Ant library that allows the definition and execution of tests inside an Ant file. AntUnit grew out of the need to validate pre-conditions in a build file, and now provides assertion tags that can be used to execute tests in conjunction with simple Java test classes.
Test suites are often run as part of a build process. And when the build process is orchestrated by Ant, lots of test-related information gets embedded in Ant build files. Ant now has a new Antlib that makes test setup and execution easier. According to the project documentation for AntUnit
1.0 :
Initially, all tests for Ant tasks were written as individual JUnit test cases. Pretty soon it was clear that most tests needed to perform common tasks like reading a build file, initializing a project instance with it and executing a target. At this point BuildFileTest was invented, a base class for almost all task test cases...
Over time a new pattern evolved, more and more tests only executed a target and didn`t check any effects. Instead that target contained the assertions as a task.
Test suites are often run as part of a build process. And when the build process is orchestrated by Ant, lots of test-related information gets embedded in Ant build files. Ant now has a new Antlib that makes test setup and execution easier. According to the project documentation for AntUnit
1.0 :
Initially, all tests for Ant tasks were written as individual JUnit test cases. Pretty soon it was clear that most tests needed to perform common tasks like reading a build file, initializing a project instance with it and executing a target. At this point BuildFileTest was invented, a base class for almost all task test cases...
Over time a new pattern evolved, more and more tests only executed a target and didn`t check any effects. Instead that target contained the assertions as a task.
Search News
News Categories
What's the News?
Post a link to something interesting from another site, or submit your own original writing for the Java community to read.
Most Popular News
-
How to stand out from other Java/JEE Professionals?
Published about 14-01-2009 | Rated +3 -
10 reasons IT certification will be important in 2009
Published about 05-01-2009 | Rated +2 -
The 9 hottest skills for `09
Published about 02-01-2009 | Rated +1 -
New Features in Servlets 3.0
Published about 05-01-2009 | Rated +4
Most Recent User Submitted News
- Instance variables
Submitted by Balamurali | Rated 0 - can any body tell me what is singleton class in Java and how to make singleton Class.
Submitted by Jeena | Rated +1 - Using JavaFX Mobile to Combat Device UI Fragmentation
Published about 15-04-2009 | Rated 0 - ADVANTAGES OF TYPE 1 Driver
Submitted by Balamurali | Rated 0







