AppFuseEclipse |
|
Your trail: |
Difference between
version 12
and
version 11:
At line 9 added 1 line. |
* [4] Run JUnit Tests in Eclipse |
At line 27 added 5 lines. |
|
!!Run JUnit Tests in Eclipse [#3] |
It's also possible to run your JUnit tests in Eclipse. I should note that if you're running an ActionTest, you'll need to execute "ant deploy-test-war" and then start Tomcat before running them. To configure Eclipse to run AppFuse's JUnit Tests, all you need to do is define a J2EE_HOME variable. To do this, go to Window → Preferences → Java → Classpath Variables. Add a new variable called J2EE_HOME and point it to the location where you have the [J2EE SDK|http://java.sun.com/j2ee/download.html#sdk] installed. AppFuse already has it's classpath configured (in the .classpath file) to include J2EE_HOME/lib/j2ee.jar. |
|
Open a test you'd like to run (i.e. PersonDaoTest) and go to Run → Debug As → JUnit Test. If this doesn't work, make sure you have at least AppFuse 1.0.1. |
Back to AppFuseEclipse,
or to the Page History.
|