I totally agree ;)


Fabrizio Giustina wrote:


I never realized servletUnit has Jspc support!
Having an headless integrated jasper is great, this means tests can be runned like simple junit test without any server setup...
On HttpUnit site I found this feature only as the last, few lines long, FAQ:
http://httpunit.sourceforge.net/doc/faq.html#JSP
... should be really more highlighted!
Anyway, I'm going to test it and trying to add servletUnit tests to displaytag. If it works how it should I'd like to totally drop cactus tests in the build and add lot of servletUnit ones.
IHMO Cactus tests for our library:
- require too much effort (probably writing a good cactus test for a new feature requires a lot more time than implementing it)
- are often hard to implement (and often it's hard to say if you are really testing the application): if you start playing with jsp tag lifecycle methods you can make lot of errors which will invalidate th result of your tests.
- require an addictional set-up (a server), while the rest of the build will, thanks to maven, work without any clue.
- are slow. Well, the setup is slow, the server restart is slow, cactus tests takes too much time in the build.
An headless testing framework in addiction will really simplify writing test cases for bugs reported on sf (simply write a jsp and assert on the generated output).
Also, this will allow us to add a test coverage analisys to our reports: I think this is a must have to build a solid, tested, project... (PS we could request a free license of clover, I already did it for other projects)
thoughts?


From: [EMAIL PROTECTED]
Sent: Tue 24/02/2004 0.06
To: [EMAIL PROTECTED]
Subject: Re: [displaytag-devel] cactus tests

Hi,

I'm no cactus guru, but using it seems a bit far fetched to "just" test taglibs, IMHO.
I would suggest using httpunit (the servletunit part of it), which has embedded jasper support. I've succesfully used it last weekend to develop (test-first) a small taglib of mine.
If you decide to go for that, I could give you some sample code to get you started ;)


g



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to