Eelco Hillenius wrote:
Christopher Turner wrote:
1) It's really painful to have to retest every single example whenever you make a change to the Wicket core. Also, the chances of missing something are quite high. We need to get some JWebUnit tests in place ASAP so that we can always verify that none of the examples are broken by any changes we make
I guess if our tests of the core components are elaborated enough, this would be sufficient. I would hate to maintain a load of tests on the examples as well.
If you pick the tests correctly, they will do the integration/functional tests of the components (in the examples project). Making sure the examples still work with new implementations of the components. The actual implementation of the component should be tested in an unit test in the core project.
IMO the tests of the examples should cover the functionality of the test applications, not the components. The functionality of the applications should reflect the intention of the components. So it is nice to have a HelloWorld application, but that would be on its best a sanity check when written in jWebUnit.
A release of wicket should entail building all projects: core, examples and contrib/components. These should be released together. Perhaps in a later stadium we can speed up the release of contrib/components and the examples, independend of the release schedule of core.
The building (compiling, testing, generating reports) of all projects could easiliy be done using the multiproject feature of maven. Using the extends relationship of the project.xml the component/contrib and examples project can depend on the wicket core. I don't know if transitive dependencies (i.e. examples extending contrib, contrib extending core) work with maven (yet).
The biggest problem is that the build takes some time to complete, since the maven plugins are stupid in the sence that for example clover runs the unittests, the test plugin runs the unittests, the artifact plugin runs the unittests, and the site plugin runs the unittests, regardless whether the tests have already been performed.
2) The current separation of core and examples is a pain from an admin point of view. The reason being that every time you change the Wicket core you have to copy the snapshot jar to the examples lib directory and check it in. I think we should remove the wicket-SNAPSHOT.jar from the wicket examples CVS tree. People who are using the examples from CVS will have the Wicket core from CVS anyway so it would be less risk to point the examples at the JAR that the core produces IMO.
It is possible to just have a dependency on the core project, and build that core project when needed. I know that Martijn has done this for at least one project. Is it a lot of work, Martijn?
Not really... But the real pain is in the development cycle. When you're debugging wicket core from the example project. Since the dependency is on the SNAPSHOT jar, Eclipse will not find the source. The standard maven eclipse plugin doesn't support creating eclipse project dependencies AFAIK.
Martijn
------------------------------------------------------- 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
