An initial version of TagUnit has now been released onto SourceForge.net. This distribution includes some of the basic functionality that will eventually be provided by the framework and represents a baselined release that can be used to start testing custom tags. Also included is a prebuilt web application containing some sample tests for the JSTL forEach tag. Future releases will include an automated test client that can be initiated from ant, in addition to many refinements and enhancements of the core framework. Feel free to download it, play with it and, of course, send any feedback that you might have. The project website can be found at www.tagunit.org. Thanks! Simon
Wow looks like a great unit testing tool for taglibs. However I think that it has not been integrated into the JUnit framework which would have been great. I have not tested it out but will do so during my free time. Thanks for the link
sharp shooter, and author
Joined: May 10, 2000
Yeah, we looked at integrating the core with the JUnit framework but it wasn't easily apparent how we might achieve it at the time. The automated client will be based around HttpUnit and JUnit though, and there's still time to retrofit it internally to the core. Simon [ July 10, 2002: Message edited by: Simon Brown ]
i've looked into integrating the reporting of the results into a general JUnit test - but an early decision that we made was to do the tests within the framework that the application will run in - i.e. on the server itself. That makes it more unit testing AND integration testing AND component testing but its still a valid model and it is very useful to be able to check that the thing will not only pass its tests but also consequently run correctly on the server (two things that are not always the same). anyway, the integration into junit (by using httpunit) is very easy now that I've got Simon to commit to a code base so it wont take very long. I am hoping to write ant tasks that eventually will also automatically start and stop the server (for tomcat and jrun initially) so that it doesnt need to be running when the tests are being done. first, I have to write a chapter for a book....
chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>