From: Wolfgang M. <wol...@ex...> - 2010-02-06 19:24:07
|
Hi Joe, ok, so we are at least all getting those errors. > I'm admittedly a testing newbie here. Is there a resource you could > point me to so I could understand junit or how eXist implements it? We are mostly using junit4. This is probably rather difficult to understand without knowing Java, though I recently tried to write more tests in XQuery (see test/src/xquery/). Anyway, each test class should be self-contained. If a class needs a running server for its test, it will start one, usually in its @BeforeClass method and stop it in @AfterClass. This worked perfectly well until recently. But if you now try to run, for example, AllXmlRpcTests: bin/run.sh org.junit.runner.JUnitCore org.exist.xmlrpc.AllXmlRpcTests you more or less see how the first test class completes and closes down the server, but while the second test class starts up a new jetty, Java just terminates without further notice. Wolfgang |