Stendhal on Eclipse: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>MartinFuchs simplify and fix description |
imported>MartinFuchs Running JUnit Tests in Eclipse |
||
| Line 65: | Line 65: | ||
# Then again the small black arrow on the right side of the green bug. (Or you may also choose to use the "Run" command instead of "Debug" in case you only want to debug the server component.) |
# Then again the small black arrow on the right side of the green bug. (Or you may also choose to use the "Run" command instead of "Debug" in case you only want to debug the server component.) |
||
# Java Application -> new-icon, and it should be prefilled. |
# Java Application -> new-icon, and it should be prefilled. |
||
# |
# On the [Classpath] tab - button "Advanced" - (*) add folder | OK - and select the project root folder. | OK |
||
yay shiny new client, shiny server |
yay shiny new client, shiny server |
||
==Running JUnit Tests in Eclipse== |
|||
# If you are runing JUnit tests in Eclipse, there are some additional things to be taken into account: |
|||
# Eclipse always automatically sets up a new run configuration for you if you invoke the "Run As" -> "JUnitTest" context command on a class or folder. It creates a default classpath configuration derived from the project settings in this run configurations. So there is missing the 'Stendhal' root folder in the classpath, which results in failures running some test cases. To fix this, open the run configurations and add the 'Stendhal' root folder like described above for the client configuration: |
|||
# On the [Classpath] tab - button "Advanced" - (*) add folder | OK - and select the project root folder. | OK |
|||
== External links == |
== External links == |
||