Hi,
I can help you on setting up IntelliJ.. If you use the intelliJ project
file from SVN, I think you need to
- For client side tests
- copy hibernate-test-template.cfg.xml to hibernate-test.cfg.xml in the
resources directory and set it up properly (either mysql or hsqldb).
- For server side tests
- a tomcat install setup on port 9080. The hibernate-test.cfg.xml and
hibernate.cfg.xml in the WEB-INF directory need to be setup properly to
access you database (either mysql or hsqldb)
- the xwiki.cfg file in WEB-INF needs to be setup with xwiki.virtual=1
(for a certain number of tests)
- a web.xml file needs to be copied (I think in the src directory.
- you need first to start a tomcat with XWiki (you need to be able to
connect on the xwiki on localhost)
- once you tomcat is running you can run the server side tests.
XMLRpcTest is a server side test. So you need to full tomcat setup.
If anything is missing in these instructions, do contact me to find out.
I'll create a documentation page on
xwiki.org with this.
Ludovic
Hello,
I need some help with running the unit tests included with the xwiki
package. What do I have to do in order to run the tests (a) from command
line (b) from an IDE (eclipse/IntelliJ) (which configurations I have to
change etc)?
Also, specifically I will like to know how to run the included
XMLRpcTest including how I can start the RPC server for the test.
Thanks,
Bikash
--
Ludovic Dubost
Blog:
http://www.ludovic.org/blog/
Créez votre Wiki:
http://www.xwiki.com
XPertNet:
http://www.xpertnet.fr