This can only test ui functions in production mode. This is useful if this is all you need to do, especially if otherwise the server’s operation for production mode takes up the limited resource of your development machine that you want to save (whereas occupying them with a running server would be “unnecessary” if your testing does not have to make requests to this server).
If your GWT project ...
- still does not make server requests for data (perhaps your project is still in its infancy) and ...
- - project Maven
... You can...
- GWT will compile your project
- Maven package (these directions use gwt-Eclipse-maven-plugin ) your project
- open the packed GWT host page in the browser (for example: index.html or <your module> .html according to your project / purpose / your version of the project and / or snapshot>). Profit!
This is enough to check the ui properties only for the project, thus in production mode. In fact, if your project has functions that make server requests for data, but you are not testing them, it will still work to test only those functions only for ui. In principle, any functions that request server data will not return these requests (since the server does not work for this), but all other functions will function, since they are only ui.
If you need to test the functions that make server requests for data, you will need to run production mode through the server (which will respond to requests). For example, with a Jetty server, see my other answer here.
cellepo Feb 14 '16 at 1:09 2016-02-14 01:09
source share