Just so everyone is aware I have added some functionality to the test suite to allow for easy enabling of trace logging for categories when running tests.
It should now be possible to specify a -Dtrace=org.mycategory1,org.mycategory2 when running the tests, and as part of the server build process an XSL will add trace logging for those categories to the server.
I am hoping this will make it much easier to debug problems that only happen in CI environments.
Stuart