Community
Participate
Working Groups
The client tests currently use a servlet that delivers all resource files listed in the ClientResources class. Since theming definitions are not included, those have to be copied manually after every theme change. The test results would be more meaningful if they used the exact resources from a running RAP instance. This would also allow us to run the tests in development and production mode. Theme changes would not break the tests anymore. And, we could easily deploy our tests on the demo server (bug 351769).
The client tests now start a RAP application that provides the resources. A service handler returns the actual resource locations for the client library and the default theme.
It turned out that this change made test-driven development difficult, since the test server needs to be restarted after every change. Moreover, having separate JavaScipt files makes debugging easier on the client. Therefore I re-installed the ClientResourcesAdapter and let the ClientResourcesServiceHandler deliver the resources. With this change, the theming resources are still loaded from a live RAP application, so the tests don't have to be adjusted after theming changes. It is still possible to deploy the js tests on a server.