Google App Engine + GWT + Eclipse: where do your device tests live?

I'm just starting with a project that integrates GWT, the Google App Engine, and the Google Eclipse plugin. Where is the best place to store my tests? I usually support my Maven style code, with src/main/javaand testing in src/test/java. The default setting that I get from the plugin dumped my source directly into srcwhich I don’t like too much, but I would prefer not to struggle with the tools. What is the "standard" place for conducting unit tests in such a project?

Solution :

  • create src/main/java, move existing code there
  • create src/test/java, add your tests here.
  • go to Project -> Properties -> Java Build Path, add new locations as source folders.
+3
source share
2 answers

Put it where you least hurt.

GWT in the Google App Engine is fairly new. You are optimistic that there is a “standard” place, especially since you have already found inconsistencies in what the tools do.

Since you have already accepted a source starting with "src /", why not put a test source in "test /"? These are in many cases contexts.

+3
source

GAE: appengine-testing.jar, appengine-api-xxx.jar . , GAE, /. , appengine-testing.jar, / .

, ( )

, , , , .

.

+4

Source: https://habr.com/ru/post/1708961/


All Articles