jQuery in Action, 2nd edition*
The moose likes JSP and the fly likes TagUnit 0.1 released Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "TagUnit 0.1 released" Watch "TagUnit 0.1 released" New topic
Author

TagUnit 0.1 released

Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
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
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1844
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
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
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 ]
chanoch wiggers
Author
Ranch Hand

Joined: May 24, 2001
Posts: 245
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>
 
Don't get me started about those stupid light bulbs.
 
subject: TagUnit 0.1 released
 
Similar Threads
cactus good?
TagUnit 0.2 released
Help on one interview question
Testing JSP's with taglibs
TagUnit 0.8 released