I think that it's good to keep both a lightweight unit test framework for testing individual components plus the jWebUnit stuff for testing complete pages and applications. I have found the lightweight framework to be invaluable for stepping through the code using IDEA's debugger in order to find exactly how things are working and why strange problems were occurring. This is much more painful to do within a container environment such as Jetty. Also with the lightweight framework its easy to constantly run the unit tests in the IDE so that you know you haven't broken anything when fiddling with the core. The lightweight framework does probably need some additional power to allow better exploration of the returned pages. At the moment you can only evaluate the entire document.
regards, Chris
Eelco Hillenius wrote:
All,
I just comitted a first (HelloWorld ofcourse ;)) jWebUnit test for the examples project. Jetty is started by JUnit before testing, and after testing Jetty is stopped. Besides adding a load of dependencies I needed to work with jWebUnit/ Jetty, I also added a package to be able to work easily with Jetty and test cases. There's more in the package than actually needed, but this way I could just copy the package from my original project (OpenEdge Util, which is not publically hosted at this time). Furthermore, there's some neat tricks in it, that might be usefull for people even though it is not directly used here.
Anyway, it would be nice if you - when you have some spare time - could write a few usefull tests as well.
*If* I can find some time this weekend, I'll add a simple paged table example to the example project. I also added a simple table navigation test to the core project. I think that one is ok for the moment, as it tests all basic behaviour. I hope that Juergen can pick up the changes he had in mind again, so that we have a complete working example project (incl. the display tags) by next week or something...
Now, about the testing. Currently we use the custom framework that Chris made for the core packages. This framework has the advantage of being quick/ not needing any further dependencies. For examples we now use jWebUnit. I found jWebUnit a bit easier to use than the core framework, as in jWebUnit you are able to just probe for a few tags. Is that possible with the core framework (or is it easily extended to do so)? I like the idea of delivering a testframework with Wicket; do you think it is a good idea to move the framework from the test tree to the core (from src/test, which is not distributed, to src/java, which is)?
Regards,
Eelco
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Wicket-develop mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Wicket-develop mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-develop
