See which of your colleagues or former colleagues are already on Java Link: Check out the Contact Finder
News »Browse Articles » AntUnit 1.0 Released
0
Vote Vote

AntUnit 1.0 Released

Views 1 Views    Comments 0 Comments    Share Share    Posted by Balamurali 15-11-2010  
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.
0
Vote  Vote
Enter your comment:
No Comments For This News

Search News

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

Most Recent User Submitted News